Legofit
infers population history from nucleotide site patterns.
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: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