Skip to content

Struct _opae_hash_map

ClassList > _opae_hash_map

Hash map object. More...

  • #include <hash_map.h>

Public Attributes

Type Name
opae_hash_map_item ** buckets
void * cleanup_context
Optional second parameter to key_cleanup and value_cleanup.
int flags
uint32_t hash_seed
void(* key_cleanup
(optional)
int(* key_compare
(required)
uint32_t(* key_hash
uint32_t num_buckets
void(* value_cleanup
(optional)

Detailed Description

This structure defines the internals of the hash map. Each of the parameters supplied to opae_hash_map_init() is stored in the structure. All parameters are required, except key_cleanup and value_cleanup, which may optionally be NULL.

Public Attributes Documentation

variable buckets

opae_hash_map_item** _opae_hash_map::buckets;

variable cleanup_context

void* _opae_hash_map::cleanup_context;

variable flags

int _opae_hash_map::flags;

variable hash_seed

uint32_t _opae_hash_map::hash_seed;

variable key_cleanup

void(* _opae_hash_map::key_cleanup) (void *key, void *context);

variable key_compare

int(* _opae_hash_map::key_compare) (void *keya, void *keyb);

variable key_hash

uint32_t(* _opae_hash_map::key_hash) (uint32_t num_buckets, uint32_t hash_seed, void *key);

variable num_buckets

uint32_t _opae_hash_map::num_buckets;

variable value_cleanup

void(* _opae_hash_map::value_cleanup) (void *value, void *context);

The documentation for this class was generated from the following file docs/sw/include/opae/hash_map.h