File Information
Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/HashVocabulary.h
Description
An implementation of Vocabulary using a hash table.
Inheritance
Direct Base Classes: Vocabulary < T >
All Base Classes: Vocabulary < T >
Member Summary
Member Functions: clone, empty, exists, find, index, insert, size, subtract, value
Types
HashTableVector
typedef std::vector < Poco::UInt32 > HashTableVector;
ValueHashFunction
typedef HashFunction < T > ValueHashFunction;
Constructors
HashVocabulary
HashVocabulary(
std::size_t hashTableSize = 32749
);
Creates the HashVocabulary.
HashVocabulary
HashVocabulary(
const HashVocabulary & voc
);
Destructor
~HashVocabulary
~HashVocabulary();
Destroys the HashVocabulary.
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 > & other
) const;
value
const T & value(
Poco::UInt32 idx
) const;
find
Poco::UInt32 find(
const T & value
) const;
insert
Poco::UInt32 insert(
const T & value,
const Poco::UInt32 newIndex,
bool & valueExisted
);