Lines Matching full:map
17 cxx_map *umap = static_cast<cxx_map *>(it->map->data->buckets); in sys_hashmap_cxx_iter_next()
21 __ASSERT(it->size == it->map->data->size, "Concurrent modification!"); in sys_hashmap_cxx_iter_next()
37 static void sys_hashmap_cxx_iter(const struct sys_hashmap *map, struct sys_hashmap_iterator *it) in sys_hashmap_cxx_iter() argument
39 it->map = map; in sys_hashmap_cxx_iter()
45 *((size_t *)&it->size) = map->data->size; in sys_hashmap_cxx_iter()
48 static void sys_hashmap_cxx_clear(struct sys_hashmap *map, sys_hashmap_callback_t cb, void *cookie) in sys_hashmap_cxx_clear() argument
50 cxx_map *umap = static_cast<cxx_map *>(map->data->buckets); in sys_hashmap_cxx_clear()
64 map->data->buckets = nullptr; in sys_hashmap_cxx_clear()
65 map->data->n_buckets = 0; in sys_hashmap_cxx_clear()
66 map->data->size = 0; in sys_hashmap_cxx_clear()
69 static int sys_hashmap_cxx_insert(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_cxx_insert() argument
72 cxx_map *umap = static_cast<cxx_map *>(map->data->buckets); in sys_hashmap_cxx_insert()
76 umap->max_load_factor(map->config->load_factor / 100.0f); in sys_hashmap_cxx_insert()
77 map->data->buckets = umap; in sys_hashmap_cxx_insert()
93 ++map->data->size; in sys_hashmap_cxx_insert()
94 map->data->n_buckets = umap->bucket_count(); in sys_hashmap_cxx_insert()
99 static bool sys_hashmap_cxx_remove(struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_remove() argument
101 cxx_map *umap = static_cast<cxx_map *>(map->data->buckets); in sys_hashmap_cxx_remove()
117 --map->data->size; in sys_hashmap_cxx_remove()
118 map->data->n_buckets = umap->bucket_count(); in sys_hashmap_cxx_remove()
120 if (map->data->size == 0) { in sys_hashmap_cxx_remove()
122 map->data->n_buckets = 0; in sys_hashmap_cxx_remove()
123 map->data->buckets = nullptr; in sys_hashmap_cxx_remove()
129 static bool sys_hashmap_cxx_get(const struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_get() argument
131 cxx_map *umap = static_cast<cxx_map *>(map->data->buckets); in sys_hashmap_cxx_get()