107 #ifdef HASHTABLE_SIZE_FIELD
303 hashtable_t* hashtablePtr,
void* keyPtr,
void* dataPtr);
324 #define TMHASHTABLE_ITER_RESET(it, ht) TMhashtable_iter_reset(TM_ARG it, ht)
325 #define TMHASHTABLE_ITER_HASNEXT(it, ht) TMhashtable_iter_hasNext(TM_ARG it, ht)
326 #define TMHASHTABLE_ITER_NEXT(it, ht) TMhashtable_iter_next(TM_ARG it, ht)
327 #define TMHASHTABLE_ALLOC(i, h, c, r, g) TMhashtable_alloc(TM_ARG, i, h, c, r, g)
328 #define TMHASHTABLE_FREE(ht) TMhashtable_free(TM_ARG ht)
329 #define TMHASHTABLE_ISEMPTY(ht) TMhashtable_isEmpty(TM_ARG ht)
330 #define TMHASHTABLE_GETSIZE(ht) TMhashtable_getSize(TM_ARG ht)
331 #define TMHASHTABLE_FIND(ht, k) TMhashtable_find(TM_ARG ht, k)
332 #define TMHASHTABLE_INSERT(ht, k, d) TMhashtable_insert(TM_ARG ht, k, d)
333 #define TMHASHTABLE_REMOVE(ht) TMhashtable_remove(TM_ARG ht)
bool_t hashtable_remove(hashtable_t *hashtablePtr, void *keyPtr)
Definition: hashtable.c:765
long numBucket
Definition: hashtable.h:106
long growthFactor
Definition: hashtable.h:114
void * TMhashtable_iter_next(TM_ARGDECL hashtable_iter_t *itPtr, hashtable_t *hashtablePtr)
Definition: hashtable.c:212
void hashtable_iter_reset(hashtable_iter_t *itPtr, hashtable_t *hashtablePtr)
Definition: hashtable.c:105
bool_t hashtable_containsKey(hashtable_t *hashtablePtr, void *keyPtr)
Definition: hashtable.c:546
void * TMhashtable_find(TM_ARGDECL hashtable_t *hashtablePtr, void *keyPtr)
Definition: hashtable.c:605
comparator_t * comparePairs
Definition: hashtable.h:111
bool_t TMhashtable_iter_hasNext(TM_ARGDECL hashtable_iter_t *itPtr, hashtable_t *hashtablePtr)
Definition: hashtable.c:155
Definition: hashtable.h:119
unsigned long ulong_t
Definition: types.h:88
Definition: hashtable.h:100
bool_t hashtable_iter_hasNext(hashtable_iter_t *itPtr, hashtable_t *hashtablePtr)
Definition: hashtable.c:130
long resizeRatio
Definition: hashtable.h:113
hashtable_t * TMhashtable_alloc(TM_ARGDECL long initNumBucket, ulong_t(*hash)(const void *), comparator_t *comparePairs, long resizeRatio, long growthFactor)
Definition: hashtable.c:356
void hashtable_free(hashtable_t *hashtablePtr)
Definition: hashtable.c:430
int bool_t
Definition: portable_defns.h:32
#define TM_ARGDECL
Definition: tm.h:532
void * hashtable_iter_next(hashtable_iter_t *itPtr, hashtable_t *hashtablePtr)
Definition: hashtable.c:181
struct hashtable_iter hashtable_iter_t
bool_t hashtable_isEmpty(hashtable_t *hashtablePtr)
Definition: hashtable.c:454
void * hashtable_find(hashtable_t *hashtablePtr, void *keyPtr)
Definition: hashtable.c:583
bool_t TMhashtable_remove(TM_ARGDECL hashtable_t *hashtablePtr, void *keyPtr)
Definition: hashtable.c:798
long TMhashtable_getSize(TM_ARGDECL hashtable_t *hashtablePtr)
Definition: hashtable.c:524
hashtable_config
Definition: hashtable.h:99
bool_t hashtable_insert(hashtable_t *hashtablePtr, void *keyPtr, void *dataPtr)
Definition: hashtable.c:663
void TMhashtable_iter_reset(TM_ARGDECL hashtable_iter_t *itPtr, hashtable_t *hashtablePtr)
Definition: hashtable.c:117
hashtable_t * hashtable_alloc(long initNumBucket, ulong_t(*hash)(const void *), comparator_t *comparePairs, long resizeRatio, long growthFactor)
Definition: hashtable.c:315
ulong_t(* hash)(const void *)
Definition: hashtable.h:110
bool_t TMhashtable_isEmpty(TM_ARGDECL hashtable_t *hashtablePtr)
Definition: hashtable.c:477
long bucket
Definition: hashtable.h:120
bool_t TMhashtable_insert(TM_ARGDECL hashtable_t *hashtablePtr, void *keyPtr, void *dataPtr)
Definition: hashtable.c:725
Definition: hashtable.h:101
bool_t TMhashtable_containsKey(TM_ARGDECL hashtable_t *hashtablePtr, void *keyPtr)
Definition: hashtable.c:564
long hashtable_getSize(hashtable_t *hashtablePtr)
Definition: hashtable.c:501
void TMhashtable_free(TM_ARGDECL hashtable_t *hashtablePtr)
Definition: hashtable.c:442
list_iter_t it
Definition: hashtable.h:121
struct hashtable hashtable_t
list_t ** buckets
Definition: hashtable.h:105
Definition: hashtable.h:104