Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
C++ Hashmap. More...
Go to the source code of this file.
Macros | |
#define | SYS_HASHMAP_CXX_DEFINE_ADVANCED(_name, _hash_func, _alloc_func, ...) |
Declare a C++ Hashmap (advanced) | |
#define | SYS_HASHMAP_CXX_DEFINE_STATIC_ADVANCED(_name, _hash_func, _alloc_func, ...) |
Declare a C++ Hashmap (advanced) | |
#define | SYS_HASHMAP_CXX_DEFINE_STATIC(_name) |
Declare a C++ Hashmap statically. | |
#define | SYS_HASHMAP_CXX_DEFINE(_name) |
Declare a C++ Hashmap. | |
Variables | |
const struct sys_hashmap_api | sys_hashmap_cxx_api |
C++ Hashmap.
This is a C wrapper around std::unordered_map
. It is mainly used for benchmarking purposes.
CONFIG_SYS_HASH_MAP_CXX
#define SYS_HASHMAP_CXX_DEFINE | ( | _name | ) |
Declare a C++ Hashmap.
Declare a C++ Hashmap with default parameters.
_name | Name of the Hashmap. |
#define SYS_HASHMAP_CXX_DEFINE_ADVANCED | ( | _name, | |
_hash_func, | |||
_alloc_func, | |||
... ) |
Declare a C++ Hashmap (advanced)
Declare a C++ Hashmap with control over advanced parameters.
_alloc
is used for allocating internal Hashmap entries and does not interact with any user-provided keys or values._name | Name of the Hashmap. |
_hash_func | Hash function pointer of type sys_hash_func32_t. |
_alloc_func | Allocator function pointer of type sys_hashmap_allocator_t. |
... | Variant-specific details for sys_hashmap_config. |
#define SYS_HASHMAP_CXX_DEFINE_STATIC | ( | _name | ) |
Declare a C++ Hashmap statically.
Declare a C++ Hashmap statically with default parameters.
_name | Name of the Hashmap. |
#define SYS_HASHMAP_CXX_DEFINE_STATIC_ADVANCED | ( | _name, | |
_hash_func, | |||
_alloc_func, | |||
... ) |
Declare a C++ Hashmap (advanced)
Declare a C++ Hashmap with control over advanced parameters.
_alloc
is used for allocating internal Hashmap entries and does not interact with any user-provided keys or values._name | Name of the Hashmap. |
_hash_func | Hash function pointer of type sys_hash_func32_t. |
_alloc_func | Allocator function pointer of type sys_hashmap_allocator_t. |
... | Details for sys_hashmap_config. |
|
extern |