Legofit
infers population history from nucleotide site patterns.
strint.h
1#ifndef LEGO_STRINT
2# define LEGO_STRINT
3
4# include "typedefs.h"
5# include <stdio.h>
6
7StrInt *StrInt_new(void);
8void StrInt_free(StrInt * self);
9void StrInt_insert(StrInt *self, const char *key, int value);
10int StrInt_get(StrInt * self, const char *key);
11int StrInt_exists(StrInt * self, const char *key);
12void StrInt_print(const StrInt * self, FILE *fp);
13unsigned StrInt_size(const StrInt *self);
14#endif
StrInt * StrInt_new(void)
StrInt constructor.
Definition: strint.c:142
int StrInt_get(StrInt *self, const char *key)
Return value corresponding to key.
Definition: strint.c:168
unsigned StrInt_size(const StrInt *self)
Number of items stored in hash table.
Definition: strint.c:194
void StrInt_free(StrInt *self)
StrInt destructor.
Definition: strint.c:150
void StrInt_insert(StrInt *self, const char *key, int value)
Insert a key-value pair into the hash table.
Definition: strint.c:159
void StrInt_print(const StrInt *self, FILE *fp)
Print a StrInt object.
Definition: strint.c:184
int StrInt_exists(StrInt *self, const char *key)
Return 1 if key exists in hash map; 0 otherwise.
Definition: strint.c:176
Hash table.
Definition: strint.c:35