|
C Container Collection (CCC)
|
The type passed by reference to a hash map that needs a hash function and key comparison function. These fields are owned and stored within the hash map metadata struct because they provide the invariants of the container hashing and comparison algorithm. The fields are provided as arguments to the CCC_Key_arguments type for hashing and the CCC_Key_comparator_arguments type for key comparison when needed for the user defined functions that accept those types.
More...
#include <types.h>
The type passed by reference to a hash map that needs a hash function and key comparison function. These fields are owned and stored within the hash map metadata struct because they provide the invariants of the container hashing and comparison algorithm. The fields are provided as arguments to the CCC_Key_arguments type for hashing and the CCC_Key_comparator_arguments type for key comparison when needed for the user defined functions that accept those types.
Data Fields | |
| CCC_Key_hasher_interface * | hash |
| CCC_Key_comparator_interface * | compare |
| void * | context |
| CCC_Key_comparator_interface* CCC_Hasher::compare |
The function for comparing a key to user elements in the container.
| void* CCC_Hasher::context |
A reference to context needed for hashing and comparison.
| CCC_Key_hasher_interface* CCC_Hasher::hash |
The function for hashing the key field of the user type.