Lines Matching refs:hashmap
13 #include "hashmap.h"
38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
55 struct hashmap *map = malloc(sizeof(struct hashmap));
63 void hashmap__clear(struct hashmap *map)
76 void hashmap__free(struct hashmap *map)
85 size_t hashmap__size(const struct hashmap *map)
90 size_t hashmap__capacity(const struct hashmap *map)
95 static bool hashmap_needs_to_grow(struct hashmap *map)
101 static int hashmap_grow(struct hashmap *map)
130 static bool hashmap_find_entry(const struct hashmap *map,
154 int hashmap_insert(struct hashmap *map, long key, long value,
206 bool hashmap_find(const struct hashmap *map, long key, long *value)
220 bool hashmap_delete(struct hashmap *map, long key,