File Information
Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/VerbTable.h
Description
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 Summary
Member Functions: at, empty, operator [], push_back, size
Types
StorageVec
typedef std::vector < std::vector < T > * > StorageVec;
Enumerations
Anonymous
INITIAL_CHUNK_SIZE = 256
Constructors
VerbTable
VerbTable();
Creates the VerbTable.
VerbTable
VerbTable(
const VerbTable & vec
);
Creates the VerbTable by copying another one.
Destructor
~VerbTable
~VerbTable();
Destroys the VerbTable.
Member Functions
empty
bool empty() const;
Returns true iff the VerbTable does not contain any elements.
operator []
const T & operator[] (
std::size_t index
) const;
Returns the element at the given index.
operator []
T & operator[] (
std::size_t index
);
Returns the element at the given index.
push_back
void push_back(
const T & value
);
Appends a value to the end of the vector.
Grows the vector if necessary.
size
std::size_t size() const;
Returns the size of the vector.
at
T & at(
std::size_t index
) const;