|
| | GF_TAILQ_HEAD (HashHead, tHashElem) |
| |
| static unsigned int | hash_str (tHashHeader *hash, const char *sstr) |
| |
| static unsigned int | hash_buf (tHashHeader *hash, char *sdata, int len) |
| |
| void * | GfHashCreate (int type) |
| | Create a new hash table. More...
|
| |
| static void | gfIncreaseHash (tHashHeader *curHeader) |
| | Double the size of the hash table. More...
|
| |
| int | GfHashAddStr (void *hash, const char *key, const void *data) |
| | Add an element with a string key to a hash table. More...
|
| |
| static const void * | gfRemElem (tHashHead *hashHead, tHashElem *elem) |
| | Remove a table element. More...
|
| |
| const void * | GfHashRemStr (void *hash, char *key) |
| | Remove an element with a string key from a hash table. More...
|
| |
| const void * | GfHashGetStr (void *hash, const char *key) |
| | Get the user data associated with a string key. More...
|
| |
| void | GfHashAddBuf (void *hash, char *key, size_t sz, void *data) |
| | Add an element with a memory buffer key to a hash table. More...
|
| |
| const void * | GfHashRemBuf (void *hash, char *key, size_t sz) |
| | Remove an element with a memory buffer key from a hash table. More...
|
| |
| const void * | GfHashGetBuf (void *hash, char *key, size_t sz) |
| | Get the user data associated with a memory buffer key. More...
|
| |
| void | GfHashRelease (void *hash, tfHashFree hashFree) |
| | Release a hash table. More...
|
| |
| const void * | GfHashGetFirst (void *hash) |
| | Get the first user data of a hash table, this is used for table scans. More...
|
| |
| const void * | GfHashGetNext (void *hash) |
| | Get the next user data of a hash table, this is used for table scans. More...
|
| |
Hash API.
- Author
- Bernhard Wymann, Eric Espie
- Version
- $Id$
Definition in file hash.cpp.