Lines Matching defs:hashmap
72 struct hashmap {
83 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
85 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
88 void hashmap__clear(struct hashmap *map);
89 void hashmap__free(struct hashmap *map);
91 size_t hashmap__size(const struct hashmap *map);
92 size_t hashmap__capacity(const struct hashmap *map);
102 * This turns hashmap into a multimap by allowing multiple values to be
103 * associated with the same key. Most useful read API for such hashmap is
129 int hashmap_insert(struct hashmap *map, long key, long value,
150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value);
157 bool hashmap_find(const struct hashmap *map, long key, long *value);
163 * hashmap__for_each_entry - iterate over all entries in hashmap
164 * @map: hashmap to iterate
173 * hashmap__for_each_entry_safe - iterate over all entries in hashmap, safe
175 * @map: hashmap to iterate
188 * @map: hashmap to iterate