QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
hash.h File Reference
This graph shows which files directly or indirectly include this file:

Typedefs

typedef struct hashtab_s hashtab_t
 

Functions

int Hash_Add (hashtab_t *tab, void *ele)
 add an entry to a hash table. More...
 
int Hash_AddElement (hashtab_t *tab, void *ele)
 add an entry to a hash table. More...
 
unsigned long Hash_Buffer (const void *buf, int len)
 hash a buffer. More...
 
void * Hash_Del (hashtab_t *tab, const char *key)
 delete an element from a hash table. More...
 
void * Hash_DelElement (hashtab_t *tab, void *ele)
 delete an element from a hash table. More...
 
void Hash_DelTable (hashtab_t *tab)
 delete a hash table. More...
 
void * Hash_Find (hashtab_t *tab, const char *key)
 find an element within a hash table. More...
 
void * Hash_FindElement (hashtab_t *tab, const void *ele)
 find an element within a hash table. More...
 
void ** Hash_FindElementList (hashtab_t *tab, void *ele)
 find a list of elements within a hash table. More...
 
void ** Hash_FindList (hashtab_t *tab, const char *key)
 find a list of elements within a hash table. More...
 
void Hash_FlushTable (hashtab_t *tab)
 clean out all the entries from a hash table, starting over again. More...
 
void Hash_Free (hashtab_t *tab, void *ele)
 calls the free element function for the supplied ele More...
 
void ** Hash_GetList (hashtab_t *tab)
 list of all elements in the table. More...
 
hashtab_tHash_NewTable (int tsize, const char *(*gk)(const void *, void *), void(*f)(void *, void *), void *ud)
 create a new hash table. More...
 
size_t Hash_NumElements (hashtab_t *tab)
 get the size of the table More...
 
void Hash_SetHashCompare (hashtab_t *tab, uintptr_t(*gh)(const void *, void *), int(*cmp)(const void *, const void *, void *))
 change the hash and compare functions used by the Hash_*Element functions. More...
 
void Hash_Stats (hashtab_t *tab)
 dump statistics about the hash table More...
 
unsigned long Hash_String (const char *str)
 hash a string. More...