Legofit
infers population history from nucleotide site patterns.
strdblmap.h
1#ifndef STRDBLMAP_H
2# define STRDBLMAP_H
3# include "typedefs.h"
4
6void StrDblMap_free(StrDblMap * self);
7double StrDblMap_get(StrDblMap * self, const char * key, int *status);
8int StrDblMap_insert(StrDblMap * self, const char * key,
9 double value);
10unsigned long StrDblMap_size(StrDblMap * self);
11int StrDblMap_hasKey(StrDblMap *self, const char *key);
12int StrDblMap_keys(StrDblMap *self, unsigned size, char * keys[size]);
13
14#endif
int StrDblMap_keys(StrDblMap *self, unsigned size, char *keys[size])
Put keys into array "keys".
Definition: strdblmap.c:214
int StrDblMap_hasKey(StrDblMap *self, const char *key)
Return 1 if key is present in map; 0 otherwise.
Definition: strdblmap.c:154
int StrDblMap_insert(StrDblMap *self, const char *key, double value)
Insert a value into the table, resizing if necessary.
Definition: strdblmap.c:175
unsigned long StrDblMap_size(StrDblMap *self)
Return the number of elements.
Definition: strdblmap.c:200
void StrDblMap_free(StrDblMap *self)
Destructor.
Definition: strdblmap.c:121
double StrDblMap_get(StrDblMap *self, const char *key, int *status)
Get the value associated with key.
Definition: strdblmap.c:131
StrDblMap * StrDblMap_new(int dim)
Constructor.
Definition: strdblmap.c:103
The hash table.
Definition: strdblmap.c:33