Monado OpenXR Runtime
u_hashmap.cpp File Reference

Hashmap for integer values header. More...

#include "util/u_hashmap.h"
#include <unordered_map>
#include <vector>
Include dependency graph for u_hashmap.cpp:

Data Structures

struct  u_hashmap_int
 A simple uint64_t key to a void pointer hashmap. More...
 

Functions

int u_hashmap_int_create (struct u_hashmap_int **out_hashmap_int)
 
int u_hashmap_int_destroy (struct u_hashmap_int **hmi)
 
int u_hashmap_int_find (struct u_hashmap_int *hmi, uint64_t key, void **out_item)
 
int u_hashmap_int_insert (struct u_hashmap_int *hmi, uint64_t key, void *value)
 
int u_hashmap_int_erase (struct u_hashmap_int *hmi, uint64_t key)
 
bool u_hashmap_int_empty (const struct u_hashmap_int *hmi)
 Is the hash map empty? More...
 
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 More...
 
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. More...
 

Detailed Description

Function Documentation

◆ u_hashmap_int_empty()

bool u_hashmap_int_empty ( const struct u_hashmap_int hmi)

Is the hash map empty?