A Hash Table. More...
#include "hash.h"
Collaboration diagram for HashTable:Data Fields | |
| size_t | num_elems |
| Number of buckets in the Hash Table. | |
| bool | strdup_keys: 1 |
| if set, the key->strkey is strdup()'d | |
| bool | allow_dups: 1 |
| if set, duplicate keys are allowed | |
| struct HashElem ** | table |
| Array of Hash keys. | |
| hash_gen_hash_t | gen_hash |
| Function to generate hash id from the key. | |
| hash_cmp_key_t | cmp_key |
| Function to compare two Hash keys. | |
| intptr_t | hdata |
| Data to pass to the hdata_free() function. | |
| hash_hdata_free_t | hdata_free |
| Function to free a Hash element. | |
A Hash Table.
| size_t HashTable::num_elems |
| bool HashTable::strdup_keys |
| bool HashTable::allow_dups |
| hash_gen_hash_t HashTable::gen_hash |
| hash_cmp_key_t HashTable::cmp_key |
| intptr_t HashTable::hdata |
Data to pass to the hdata_free() function.
| hash_hdata_free_t HashTable::hdata_free |