Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/MapVocabulary.h
An implementation of Vocabulary using a map.
Direct Base Classes: Vocabulary < T >
All Base Classes: Vocabulary < T >
Member Functions: clone, empty, exists, index, size, subtract, value
typedef typename Data::const_iterator ConstIterator;
typedef std::map < T, Poco::UInt32 > Data;
typedef typename Data::iterator Iterator;
explicit MapVocabulary(
std::size_t sizeHint = 0
);
Creates the MapVocabulary.
~MapVocabulary();
Destroys the MapVocabulary.
Vocabulary < T > * clone() const;
bool empty() const;
Poco::UInt32 exists(
const T & value,
bool & valueExisted
) const;
Poco::UInt32 index(
const T & value,
bool & valueExisted
);
std::size_t size() const;
Vocabulary < T > * subtract(
const Vocabulary < T > & voc
) const;
const T & value(
Poco::UInt32 idx
) const;
Returns the value for the given index. Throws an exception if the idx is out of range.