1 #ifndef __LIBCPROJECT_HASH_MAP__
2 #define __LIBCPROJECT_HASH_MAP__
14 #define HASH_MAP_INITIAL_CAPACITY 10
bool hash_map_contains_key(struct hash_map *hash_map, string_t key)
Check if the hash map contains a key.
void hash_map_free(struct hash_map *hash_map)
Frees the hash map.
struct linked_list ** items
void hash_map_remove(struct hash_map *hash_map, string_t key)
Remove an item from the hash map.
void hash_map_add(struct hash_map *hash_map, string_t key, void *data)
Add an item to the hash map.
string_t * hash_map_get_keys(struct hash_map *hash_map)
Get the hash map keys.
struct hash_map * hash_map_initialization()
Hash map initialization.
void * hash_map_get(struct hash_map *hash_map, string_t key)
Get an item from the hash map.
uint64_t hash(string_t key, size_t capacity)
Hash function (using SipHash 1-3 algorithm).
Hash map item data structure.
Linked list data structure.