C Container Collection (CCC)
Loading...
Searching...
No Matches
CCC_Hasher Struct Reference

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>

Detailed Description

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_interfacehash
 
CCC_Key_comparator_interfacecompare
 
void * context
 

Field Documentation

◆ compare

CCC_Key_comparator_interface* CCC_Hasher::compare

The function for comparing a key to user elements in the container.

◆ context

void* CCC_Hasher::context

A reference to context needed for hashing and comparison.

◆ hash

CCC_Key_hasher_interface* CCC_Hasher::hash

The function for hashing the key field of the user type.


The documentation for this struct was generated from the following file: