/* File: dict.h * Author: Richard Durbin (rd@sanger.ac.uk) * Copyright (C) Genome Research Limited, 2003-2008 *------------------------------------------------------------------- * Description: header file for DICT package, string hash tables developed from the corresponding functions in acedb Jean Thierry-Mieg and Richard Durbin 1989- * Exported functions: * HISTORY: * Last edited: Dec 20 09:35 2008 (rd) * Created: Sat Dec 20 09:34:14 2008 (rd) *------------------------------------------------------------------- */ #ifndef __DICT_H__ #define __DICT_H__ typedef struct { char* *names ; int *table ; int max ; /* current number of entries */ int dim ; int size ; /* 2^dim = size of tables */ } DICT ; DICT *dictCreate (int size) ; void *dictDestroy (DICT *dict) ; int dictAdd (DICT *dict, char* string, int *index) ; int dictFind (DICT *dict, char *string, int *index) ; char* dictName (DICT *dict, int i) ; #define dictMax(dict) ((dict)->max) #endif /*********** end of file ***********/