KzcHashMapConfiguration Struct Reference

Configuration parameters for a HashMap. More...

#include <kanzi/core/legacy/util/collection/kzc_hash_map.hpp>

Public Attributes

enum KzcHashMapKeyType keyType
 Type of hash map key. More...
 
KzcHashFunction hashFunction
 Returns a hash code for the specified key. More...
 
KzcComparatorFunction keyComparator
 Comparator for the key. More...
 

Detailed Description

Configuration parameters for a HashMap.

The configuration specifies what type of keys are used in the hash map. The most common configurations are KZC_HASH_MAP_CONFIGURATION_POINTER if the keys are arbitrary pointers and KZC_HASH_MAP_CONFIGURATION_STRING if the keys are strings. Custom configurations can also be created for other key types such as structs by setting key type to be KZC_HASH_MAP_KEY_TYPE_CUSTOM and providing the required callbacks.

See also
KZC_HASH_MAP_CONFIGURATION_INT
KZC_HASH_MAP_CONFIGURATION_UINT
KZC_HASH_MAP_CONFIGURATION_FLOAT
KZC_HASH_MAP_CONFIGURATION_POINTER
KZC_HASH_MAP_CONFIGURATION_STRING

Member Data Documentation

enum KzcHashMapKeyType KzcHashMapConfiguration::keyType

Type of hash map key.

KzcHashFunction KzcHashMapConfiguration::hashFunction

Returns a hash code for the specified key.

KzcComparatorFunction KzcHashMapConfiguration::keyComparator

Comparator for the key.


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