Lines Matching refs:hashmap
52 struct hashmap {
73 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
75 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
78 void hashmap__clear(struct hashmap *map);
79 void hashmap__free(struct hashmap *map);
81 size_t hashmap__size(const struct hashmap *map);
82 size_t hashmap__capacity(const struct hashmap *map);
92 * This turns hashmap into a multimap by allowing multiple values to be
93 * associated with the same key. Most useful read API for such hashmap is
112 int hashmap__insert(struct hashmap *map, const void *key, void *value,
116 static inline int hashmap__add(struct hashmap *map,
122 static inline int hashmap__set(struct hashmap *map,
130 static inline int hashmap__update(struct hashmap *map,
138 static inline int hashmap__append(struct hashmap *map,
144 bool hashmap__delete(struct hashmap *map, const void *key,
147 bool hashmap__find(const struct hashmap *map, const void *key, void **value);
150 * hashmap__for_each_entry - iterate over all entries in hashmap
151 * @map: hashmap to iterate
160 * hashmap__for_each_entry_safe - iterate over all entries in hashmap, safe
162 * @map: hashmap to iterate
175 * @map: hashmap to iterate