Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/VerbTable.h
This is a vector class template providing minimal features required for use with a FastInfoset Vocabulary. A special property of this class is that it can grow without the need to reallocate memory for existing elements. Therefore, it is save to keep pointers to objects stored in the vector.
Member Functions: at, empty, operator [], push_back, size
typedef std::vector < std::vector < T > * > StorageVec;
INITIAL_CHUNK_SIZE = 256
VerbTable();
Creates the VerbTable.
VerbTable(
const VerbTable & vec
);
Creates the VerbTable by copying another one.
~VerbTable();
Destroys the VerbTable.
bool empty() const;
Returns true if and only if the VerbTable does not contain any elements.
const T & operator[] (
std::size_t index
) const;
Returns the element at the given index.
T & operator[] (
std::size_t index
);
Returns the element at the given index.
void push_back(
const T & value
);
Appends a value to the end of the vector.
Grows the vector if necessary.
std::size_t size() const;
Returns the size of the vector.
T & at(
std::size_t index
) const;