iflDictionary(3) Image Format Library C++ Reference Manual iflDictionary(3)NAMEiflDictionary - implements a dictionary of named elements
INHERITS FROM
iflHashTable
HEADER FILE
#include <ifl/iflDictionary.h>
CLASS DESCRIPTIONiflDictionary 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
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 DESCRIPTIONSiflDictionary()
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
Inherited from iflHashTable
clear(), find(), getFullFraction(), insert(), match(), next(), remove(),
setFullFraction()SEE ALSO
iflHashTable, iflName
Page 2