18#ifndef ZEPHYR_INCLUDE_SYS_HASH_MAP_CXX_H_
19#define ZEPHYR_INCLUDE_SYS_HASH_MAP_CXX_H_
43#define SYS_HASHMAP_CXX_DEFINE_ADVANCED(_name, _hash_func, _alloc_func, ...) \
44 SYS_HASHMAP_DEFINE_ADVANCED(_name, &sys_hashmap_cxx_api, sys_hashmap_config, \
45 sys_hashmap_data, _hash_func, _alloc_func, __VA_ARGS__)
60#define SYS_HASHMAP_CXX_DEFINE_STATIC_ADVANCED(_name, _hash_func, _alloc_func, ...) \
61 SYS_HASHMAP_DEFINE_STATIC_ADVANCED(_name, &sys_hashmap_cxx_api, sys_hashmap_config, \
62 sys_hashmap_data, _hash_func, _alloc_func, __VA_ARGS__)
71#define SYS_HASHMAP_CXX_DEFINE_STATIC(_name) \
72 SYS_HASHMAP_CXX_DEFINE_STATIC_ADVANCED( \
73 _name, sys_hash32, SYS_HASHMAP_DEFAULT_ALLOCATOR, \
74 SYS_HASHMAP_CONFIG(SIZE_MAX, SYS_HASHMAP_DEFAULT_LOAD_FACTOR))
83#define SYS_HASHMAP_CXX_DEFINE(_name) \
84 SYS_HASHMAP_CXX_DEFINE_ADVANCED( \
85 _name, sys_hash32, SYS_HASHMAP_DEFAULT_ALLOCATOR, \
86 SYS_HASHMAP_CONFIG(SIZE_MAX, SYS_HASHMAP_DEFAULT_LOAD_FACTOR))
88#ifdef CONFIG_SYS_HASH_MAP_CHOICE_CXX
89#define SYS_HASHMAP_DEFAULT_DEFINE(_name) SYS_HASHMAP_CXX_DEFINE(_name)
90#define SYS_HASHMAP_DEFAULT_DEFINE_STATIC(_name) SYS_HASHMAP_CXX_DEFINE_STATIC(_name)
91#define SYS_HASHMAP_DEFAULT_DEFINE_ADVANCED(_name, _hash_func, _alloc_func, ...) \
92 SYS_HASHMAP_CXX_DEFINE_ADVANCED(_name, _hash_func, _alloc_func, __VA_ARGS__)
93#define SYS_HASHMAP_DEFAULT_DEFINE_STATIC_ADVANCED(_name, _hash_func, _alloc_func, ...) \
94 SYS_HASHMAP_CXX_DEFINE_STATIC_ADVANCED(_name, _hash_func, _alloc_func, __VA_ARGS__)
const struct sys_hashmap_api sys_hashmap_cxx_api
Generic Hashmap API.
Definition hash_map_api.h:168