StrPtrMap * StrPtrMap_new(void)
StrPtrMap constructor.
Definition: strptrmap.c:105
unsigned long StrPtrMap_size(StrPtrMap *self)
Return the number of elements in the StrPtrMap.
Definition: strptrmap.c:160
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:185
void StrPtrMap_print(StrPtrMap *self)
Print a StrPtrMap.
Definition: strptrmap.c:173
void StrPtrMap_free(StrPtrMap *self)
StrPtrMap destructor.
Definition: strptrmap.c:113
int StrPtrMap_insert(StrPtrMap *self, const char *key, void *ptr)
Insert a pointer into the table.
Definition: strptrmap.c:144
void * StrPtrMap_get(StrPtrMap *self, const char *key)
Get the pointer associated with key.
Definition: strptrmap.c:122
The hash table.
Definition: strptrmap.c:38