Lines Matching refs:hashtable
2 * \file hashtable.c
22 #include <hashtable/hashtable.h>
23 #include <hashtable/multimap.h>
63 * \brief get the number of entries in a hashtable
64 * \param h the hashtable
70 struct hashtable *ht = (struct hashtable*) dict;
76 * \brief put a new key/value pair into the hashtable
77 * \param ht the hashtable
81 * maintaining the value, the hashtable only keeps pointers.
87 struct hashtable *ht = (struct hashtable*) dict;
132 * \brief get a value from the hashtable for a given key
133 * \param ht the hashtable
144 struct hashtable *ht = (struct hashtable*) dict;
169 struct hashtable *ht = (struct hashtable*) dict;
190 struct hashtable *ht = (struct hashtable*) dict;
215 * \brief create an empty hashtable with a given capacity and load factor
218 * \return an empty hashtable.
220 static void ht_init(struct hashtable *_ht, int capacity, int load_factor)
238 struct hashtable* create_hashtable2(int capacity, int load_factor)
240 struct hashtable *_ht = malloc(sizeof(struct hashtable));
248 * \brief create an empty hashtable with default capacity and load factor
249 * \return an empty hashtable
251 struct hashtable* create_hashtable(void)