iflDictionary(3) Image Format Library C++ Reference Manual iflDictionary(3)
iflDictionary - implements a dictionary of named elements
iflHashTable
#include <ifl/iflDictionary.h>
iflDictionary is used to create a dictionary of named elements. It is
derived from iflHashTable, and supplies appropriate hash function and key
matching methods for name strings. The elements of the dictionary must
be, or be derived from, iflName.
CLASS MEMBER FUNCTION SUMMARY [Toc] [Back] Constructor
iflDictionary(int size=0, int caseSensitive=TRUE)
Insert/find dictionary entries
int insert(iflName* elem)
iflName* find(const char* s, int insertIfNeeded=FALSE)
FUNCTION DESCRIPTIONS [Toc] [Back] iflDictionary()
iflDictionary(int size=0, int caseSensitive=TRUE)
Creates an iflDictionary with initial capacity, size. The default
value of zero creates a table with 131 slots. The name lookup can
either be case-sensitive or case-insensitive, depending on whether
caseSensitive it TRUE or FALSE, respectively.
find()
iflName* find(const char* s, int insertIfNeeded=FALSE)
Tries to locate the element with name string s in the dictionary. If
unsuccessful and if insertIfNeeded is TRUE then an element of type
iflName, with name string s, is inserted into the dictionary, a
value of NULL is returned otherwise.
insert()
int insert(iflName* elem)
Page 1
iflDictionary(3) Image Format Library C++ Reference Manual iflDictionary(3)
Returns TRUE if elem is successfully inserted into the dictionary;
FALSE otherwise.
INHERITED MEMBER FUNCTIONS [Toc] [Back] Inherited from iflHashTable
clear(), find(), getFullFraction(), insert(), match(), next(), remove(),
setFullFraction()
iflHashTable, iflName
PPPPaaaaggggeeee 2222 [ Back ]
|