![]() |
torcs - 1.2.2 | ![]() |
Files | |
file | hash.cpp |
This is the hash computation API. | |
Functions | |
void * | GfHashCreate (int type) |
Create a new hash table. | |
int | GfHashAddStr (void *hash, char *key, void *data) |
Add an element with a string key to a hash table. | |
void * | GfHashRemStr (void *hash, char *key) |
Remove an element with a string key from a hash table. | |
void * | GfHashGetStr (void *hash, char *key) |
Get the user data associated with a string key. | |
void | GfHashAddBuf (void *hash, char *key, size_t sz, void *data) |
Add an element with a memory buffer key to a hash table. | |
void * | GfHashRemBuf (void *hash, char *key, size_t sz) |
Remove an element with a memory buffer key from a hash table. | |
void * | GfHashGetBuf (void *hash, char *key, size_t sz) |
Get the user data associated with a memory buffer key. | |
void | GfHashRelease (void *hash, tfHashFree hashFree) |
Release a hash table. | |
void * | GfHashGetFirst (void *hash) |
Get the first user data of a hash table. | |
void * | GfHashGetNext (void *hash) |
Get the next user data of a hash table. |
|
Add an element with a memory buffer key to a hash table.
|
|
Add an element with a string key to a hash table.
|
|
Create a new hash table.
|
|
Get the user data associated with a memory buffer key.
|
|
Get the first user data of a hash table. This is used for table scan.
|
Here is the call graph for this function:
|
Get the next user data of a hash table. This is used for table scan.
|
|
Get the user data associated with a string key.
|
|
Release a hash table.
|
|
Remove an element with a memory buffer key from a hash table.
|
|
Remove an element with a string key from a hash table.
|