![]() |
MOS Source Code
|
#include "mos/lib/sync/spinlock.hpp"#include <mos/allocator.hpp>#include <mos/lib/structures/hashmap.hpp>#include <mos/moslib_global.hpp>#include <mos_stdlib.hpp>#include <mos_string.hpp>Go to the source code of this file.
Classes | |
| struct | hashmap_entry_t |
Macros | |
| #define | HASHMAP_MAGIC MOS_FOURCC('H', 'M', 'a', 'p') |
Functions | |
| void | hashmap_init (hashmap_t *map, size_t capacity, hashmap_hash_t hash_func, hashmap_key_compare_t compare_func) |
| void | hashmap_deinit (hashmap_t *map) |
| Deinitialize a hashmap. | |
| void * | hashmap_put (hashmap_t *map, uintn key, void *value) |
| void * | hashmap_get (hashmap_t *map, uintn key) |
| void * | hashmap_remove (hashmap_t *map, uintn key) |
| void | hashmap_foreach (hashmap_t *map, hashmap_foreach_func_t func, void *data) |
| #define HASHMAP_MAGIC MOS_FOURCC('H', 'M', 'a', 'p') |
Definition at line 11 of file hashmap.cpp.
Referenced by __mos_test_wrapped_test_hashmap_foreach_function(), __mos_test_wrapped_test_hashmap_get_function(), __mos_test_wrapped_test_hashmap_init_simple_macro(), __mos_test_wrapped_test_hashmap_put_multiple(), __mos_test_wrapped_test_hashmap_put_overflow(), __mos_test_wrapped_test_hashmap_put_single(), __mos_test_wrapped_test_hashmap_remove_function(), hashmap_deinit(), hashmap_foreach(), hashmap_get(), hashmap_init(), hashmap_put(), and hashmap_remove().