|
libstd v0.1.0
|
Structure representing a generic Hash Map. More...
#include <hashmap.h>

Public Attributes | |
| HashNode ** | buckets |
| size_t | bucket_count |
| size_t | key_size |
| size_t | value_size |
| size_t | size |
| unsigned long(* | hash_fn )(void *) |
| int(* | cmp_fn )(void *, void *) |
Structure representing a generic Hash Map.
| size_t HashMap::bucket_count |
Number of buckets available in the hash table.
| HashNode** HashMap::buckets |
Array of pointers to bucket head nodes.
| int(* HashMap::cmp_fn) (void *, void *) |
Function pointer to compare two keys (returns 0 if equal).
| unsigned long(* HashMap::hash_fn) (void *) |
Function pointer to compute the hash code for a key.
| size_t HashMap::key_size |
Memory size (in bytes) of individual keys.
| size_t HashMap::size |
Total number of key-value pairs currently stored.
| size_t HashMap::value_size |
Memory size (in bytes) of individual values.