34 struct hashmap_value_t;
41 struct hashmap_key_t *
key;
52 int (*
equal)(
struct hashmap_key_t*,
struct hashmap_key_t*);
53 int (*
hash)(
struct hashmap_key_t*);
66 hashmap_t*
hashmap_create(
int size,
int (*equal)(
struct hashmap_key_t*,
struct hashmap_key_t*),
int (*hash)(
struct hashmap_key_t*));
struct hashmap_cell_t ** table
Definition: hashmap.h:51
struct hashmap_value_t * hashmap_get(hashmap_t *this, struct hashmap_key_t *key)
Definition: hashmap.c:84
struct hashmap_value_t * hashmap_remove(hashmap_t *this, struct hashmap_key_t *key)
Definition: hashmap.c:62
int size
Definition: hashmap.h:50
struct __hashmap_t hashmap_t
int(* equal)(struct hashmap_key_t *, struct hashmap_key_t *)
Definition: hashmap.h:52
hashmap_t * hashmap_create(int size, int(*equal)(struct hashmap_key_t *, struct hashmap_key_t *), int(*hash)(struct hashmap_key_t *))
Definition: hashmap.c:32
struct hashmap_key_t * key
Definition: hashmap.h:41
int(* hash)(struct hashmap_key_t *)
Definition: hashmap.h:53
void hashmap_set(hashmap_t *this, struct hashmap_key_t *key, struct hashmap_value_t *value)
Definition: hashmap.c:45
struct hashmap_value_t * value
Definition: hashmap.h:42
struct hashmap_cell_t * next
Definition: hashmap.h:43