Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXDict.h>
Inheritance diagram for FX::FXDict:
Public Member Functions | |
FXDict () | |
FXint | size () const |
void | size (FXint m) |
FXint | no () const |
void * | insert (const FXchar *ky, const void *ptr, FXbool mrk=FALSE) |
void * | replace (const FXchar *ky, const void *ptr, FXbool mrk=FALSE) |
void * | remove (const FXchar *ky) |
void * | find (const FXchar *ky) const |
const FXchar * | key (FXuint pos) const |
void * | data (FXuint pos) const |
FXbool | mark (FXuint pos) const |
FXint | first () const |
FXint | last () const |
FXint | next (FXint pos) const |
FXint | prev (FXint pos) const |
void | clear () |
virtual | ~FXDict () |
It is typically used to map strings to pointers; however, overloading the createData() and deleteData() members allows any type of data to be indexed by strings.
|
Construct an empty dictionary.
|
|
Destructor.
|
|
Return the size of the table, including the empty slots.
|
|
Resize the table to the given size.
|
|
Return the total number of entries in the table.
|
|
Insert a new entry into the table given key and mark. If there is already an entry with that key, leave it unchanged, otherwise insert the new entry. |
|
Replace data at key, if the entry's mark is less than or equal to the given mark. If there was no existing entry, a new entry is inserted with the given mark. |
|
Remove data given key.
Reimplemented in FX::FXFileDict, FX::FXIconDict, and FX::FXStringDict. |
|
Find data pointer given key.
Reimplemented in FX::FXSettings, and FX::FXStringDict. |
|
Return key at position pos.
|
|
return data pointer at position pos.
Reimplemented in FX::FXSettings, and FX::FXStringDict. |
|
Return mark flag of entry at position pos.
|
|
Return position of first filled slot, or >= total.
|
|
Return position of last filled slot or -1.
|
|
Return position of next filled slot in hash table or a value greater than or equal to total if no filled slot was found.
|
|
Return position of previous filled slot in hash table or a -1 if no filled slot was found.
|
|
Clear all entries.
Reimplemented in FX::FXSettings. |
Copyright © 1997-2005 Jeroen van der Zijp |