StrPtrMap * StrPtrMap_new(void)
StrPtrMap constructor.
Definition strptrmap.c:120
unsigned long StrPtrMap_size(StrPtrMap *self)
Return the number of elements in the StrPtrMap.
Definition strptrmap.c:175
void StrPtrMap_ptrArray(StrPtrMap *self, long unsigned n, void *v[n])
Fill array v with pointers. Abort if v is of wrong size.
Definition strptrmap.c:200
void StrPtrMap_print(StrPtrMap *self)
Print a StrPtrMap.
Definition strptrmap.c:188
void StrPtrMap_free(StrPtrMap *self)
StrPtrMap destructor.
Definition strptrmap.c:128
int StrPtrMap_insert(StrPtrMap *self, const char *key, void *ptr)
Insert a pointer into the table.
Definition strptrmap.c:159
void * StrPtrMap_get(StrPtrMap *self, const char *key)
Get the pointer associated with key.
Definition strptrmap.c:137
The hash table.
Definition strptrmap.c:38