class MbDict

MbDict: a dictionary mapping (unsigned long) integer keys to (void *) data pointers

Public Fields

PFSTRUCT_DECLARE

Public Methods

void clear()
Removes all entries from dictionary.
MbBool enter(u_long key, void *value)
Enters a key,value pair into the dictionary
MbBool find(u_long key, void *&value)
Finds entry with given key, setting value to point to value
MbDict(int entries = 251)
MbBool remove(u_long key)
Removes the entry with the given key. Returns FALSE if no such entry
~MbDict()

Private Fields

MbDictEntry** buckets
Entries are stored as an external hash table of SbDictEntry instances.
int tableSize
Entries in table

Private Methods

MbDictEntry*& findEntry(u_long key)

Documentation

MbDict: a dictionary mapping (unsigned long) integer keys to (void *) data pointers
MbDict(int entries = 251)

~MbDict()

void clear()
Removes all entries from dictionary.

MbBool enter(u_long key, void *value)
Enters a key,value pair into the dictionary. Overwrites entry and returns FALSE if key already exists.

MbBool find(u_long key, void *&value)
Finds entry with given key, setting value to point to value. Returns FALSE if no such entry.

MbBool remove(u_long key)
Removes the entry with the given key. Returns FALSE if no such entry

PFSTRUCT_DECLARE

int tableSize
Entries in table

MbDictEntry** buckets
Entries are stored as an external hash table of SbDictEntry instances.

MbDictEntry*& findEntry(u_long key)


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de