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