Legofit
infers population history from nucleotide site patterns.
Loading...
Searching...
No Matches
strptrmap.h
1#ifndef STRPTRMAP_H
2# define STRPTRMAP_H
3# include "typedefs.h"
4
6void StrPtrMap_free(StrPtrMap * self);
7void *StrPtrMap_get(StrPtrMap * self, const char *key);
8int StrPtrMap_insert(StrPtrMap * self, const char *key,
9 void * node);
10unsigned long StrPtrMap_size(StrPtrMap * self);
11void StrPtrMap_print(StrPtrMap * self);
12void StrPtrMap_ptrArray(StrPtrMap *self, long unsigned n, void *v[n]);
13
14#endif
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