Lines Matching full:it
15 static void sys_hashmap_cxx_iter_next(struct sys_hashmap_iterator *it) in sys_hashmap_cxx_iter_next() argument
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()
22 __ASSERT(sys_hashmap_iterator_has_next(it), "Attempt to access beyond current bound!"); in sys_hashmap_cxx_iter_next()
25 for (size_t i = 0; i < it->pos; ++i, it2++) in sys_hashmap_cxx_iter_next()
28 it->key = it2->first; in sys_hashmap_cxx_iter_next()
29 it->value = it2->second; in sys_hashmap_cxx_iter_next()
30 ++it->pos; 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()
40 it->next = sys_hashmap_cxx_iter_next; in sys_hashmap_cxx_iter()
41 it->state = nullptr; in sys_hashmap_cxx_iter()
42 it->key = 0; in sys_hashmap_cxx_iter()
43 it->value = 0; in sys_hashmap_cxx_iter()
44 it->pos = 0; in sys_hashmap_cxx_iter()
45 *((size_t *)&it->size) = map->data->size; in sys_hashmap_cxx_iter()
80 auto it = umap->find(key); in sys_hashmap_cxx_insert() local
81 if (it != umap->end() && old_value != nullptr) { in sys_hashmap_cxx_insert()
82 *old_value = it->second; in sys_hashmap_cxx_insert()
83 it->second = value; in sys_hashmap_cxx_insert()
107 auto it = umap->find(key); in sys_hashmap_cxx_remove() local
108 if (it == umap->end()) { in sys_hashmap_cxx_remove()
113 *value = it->second; in sys_hashmap_cxx_remove()
137 auto it = umap->find(key); in sys_hashmap_cxx_get() local
138 if (it == umap->end()) { in sys_hashmap_cxx_get()
143 *value = it->second; in sys_hashmap_cxx_get()