28typedef void (*u_hashmap_int_callback)(
void *item,
void *priv);
29typedef void (*u_hashmap_int_foreach_callback)(uint64_t key,
const void *value,
void *priv_ctx);
38u_hashmap_int_find(
struct u_hashmap_int *hmi, uint64_t key,
void **out_item);
41u_hashmap_int_insert(
struct u_hashmap_int *hmi, uint64_t key,
void *value);
void u_hashmap_int_for_each(const struct u_hashmap_int *hmi, u_hashmap_int_foreach_callback cb, void *priv_ctx)
iterators through each [key,item] pairs of hash map
Definition: u_hashmap.cpp:84
void u_hashmap_int_clear_and_call_for_each(struct u_hashmap_int *hmi, u_hashmap_int_callback cb, void *priv)
First clear the hashmap and then call the given callback with each item that was in the hashmap.
Definition: u_hashmap.cpp:94
A simple uint64_t key to a void pointer hashmap.
Definition: u_hashmap.cpp:24
bool u_hashmap_int_empty(const struct u_hashmap_int *hmi)
Is the hash map empty?
Definition: u_hashmap.cpp:78
Header holding common defines.