Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

hash.h

00001 /* OOQP                                                               *
00002  * Authors: E. Michael Gertz, Stephen J. Wright                       *
00003  * (C) 2001 University of Chicago. See Copyright Notification in OOQP */
00004 
00005 /* hash table definitions
00006  *
00007  * PCx beta-2.0  10/31/96.
00008  *
00009  * Authors: Joe Czyzyk, Sanjay Mehrotra, Steve Wright.
00010  *
00011  * (C) 1996 University of Chicago. See COPYRIGHT in main directory.
00012  */
00013 
00014 #ifndef HashFile
00015 #define HashFile
00016 
00017 typedef struct node *ListPtr;
00018 
00019 typedef struct node {
00020   int     index;
00021   char   *entry;
00022   ListPtr next;
00023 } List;
00024 
00025 typedef struct {
00026   ListPtr *list;
00027   int      size;
00028 } HashTable;
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033   HashTable  *NewHashTable(int size);
00034   int Insert (HashTable * table, char * name, int index );
00035   int GetIndex( HashTable * table, char name[] );
00036   int DeleteHashTable(HashTable * table);
00037 #ifdef __cplusplus
00038 }
00039 #endif
00040 
00041 #endif

Generated on Mon May 24 17:40:46 2004 for OOQP by doxygen1.2.18