Token list.
Token list. This is a class very similar to GMap, only it is limited much more limited scope. It is an associative array "string" to integer. But the integer is assigned uniquely by this class in sequential order. This is of use when you want to store items sequentially in an array without making the array too large. This list is always sorted, so this class is also useful for creating a sorted unique list of words.At some point the TokenList class could easily be replace by GMap, but is left as a separate class so static install programs can link just one object from the libdjvu++ library.
The DjVuTokenList keeps track of string/integer pairs. One unique integer is assigned per string. With the integer range stored from zero to the number of strings present. This is primarily intended to allow a simple mapping between strings and a fixed size array.
~DjVuTokenList()
inline const char* const GetString(const int token) const
int GetToken(const char name[]) const
int SetToken(const char name[])
friend void DjVuParseOptions::init(const char [], const char [])
Alphabetic index HTML hierarchy of classes or Java