Monado OpenXR Runtime
Data Structures | Functions
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)
 
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

Hashmap for integer values header.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ u_hashmap_int_create()

int u_hashmap_int_create ( struct u_hashmap_int **  out_hashmap_int)

◆ u_hashmap_int_destroy()

int u_hashmap_int_destroy ( struct u_hashmap_int **  hmi)

◆ u_hashmap_int_erase()

int u_hashmap_int_erase ( struct u_hashmap_int hmi,
uint64_t  key 
)

References u_hashmap_int::map.

◆ u_hashmap_int_find()

int u_hashmap_int_find ( struct u_hashmap_int hmi,
uint64_t  key,
void **  out_item 
)

References u_hashmap_int::map.

◆ u_hashmap_int_insert()

int u_hashmap_int_insert ( struct u_hashmap_int hmi,
uint64_t  key,
void *  value 
)

References u_hashmap_int::map.