14#ifndef __WMEM_MULTIMAP_H__
15#define __WMEM_MULTIMAP_H__
67 GHashFunc hash_func, GEqualFunc eql_func)
94 GHashFunc hash_func, GEqualFunc eql_func)
WS_DLL_PUBLIC void * wmem_multimap_lookup32_le(const wmem_multimap_t *map, const void *key, const uint32_t frame_num)
Lookup a value in the multimap with an exact match for the map key and the largest value less than or...
Definition wmem_multimap.c:153
WS_DLL_PUBLIC wmem_multimap_t * wmem_multimap_new(wmem_allocator_t *allocator, GHashFunc hash_func, GEqualFunc eql_func) G_GNUC_MALLOC
Creates a multimap with the given allocator scope.
Definition wmem_multimap.c:35
WS_DLL_PUBLIC void * wmem_multimap_remove32(wmem_multimap_t *map, const void *key, const uint32_t frame_num)
Remove a value from the multimap.
Definition wmem_multimap.c:164
WS_DLL_PUBLIC bool wmem_multimap_insert32(wmem_multimap_t *map, const void *key, uint32_t frame_num, void *value)
Insert a value in the multimap.
Definition wmem_multimap.c:126
WS_DLL_PUBLIC void * wmem_multimap_lookup32(const wmem_multimap_t *map, const void *key, const uint32_t frame_num)
Lookup a value in the multimap combination with an exact match.
Definition wmem_multimap.c:142
WS_DLL_PUBLIC unsigned wmem_multimap_count(const wmem_multimap_t *map, const void *key)
Returns the number of values in the multimap with a certain hash key.
Definition wmem_multimap.c:115
WS_DLL_PUBLIC wmem_multimap_t * wmem_multimap_new_autoreset(wmem_allocator_t *metadata_scope, wmem_allocator_t *data_scope, GHashFunc hash_func, GEqualFunc eql_func) G_GNUC_MALLOC
Creates a multimap with two allocator scopes.
Definition wmem_multimap.c:75
WS_DLL_PUBLIC wmem_list_t * wmem_multimap_get_keys(wmem_allocator_t *list_allocator, const wmem_multimap_t *map)
Retrieves a list of the keys inside the multimap.
Definition wmem_multimap.c:93
WS_DLL_PUBLIC unsigned wmem_multimap_size(const wmem_multimap_t *map)
Return the total number of elements in the multimap.
Definition wmem_multimap.c:106
Definition wmem_allocator.h:27
Definition wmem_list.c:23
Definition wmem_multimap.c:23