Back to index

lightning-sunbird  0.9+nobinonly
hashmgr.hxx
Go to the documentation of this file.
00001 #ifndef _HASHMGR_HXX_
00002 #define _HASHMGR_HXX_
00003 
00004 #include "htypes.hxx"
00005 
00006 class HashMgr
00007 {
00008   int             tablesize;
00009   struct hentry * tableptr;
00010 
00011 public:
00012   HashMgr(const char * tpath);
00013   ~HashMgr();
00014 
00015   struct hentry * lookup(const char *) const;
00016   int hash(const char *) const;
00017   struct hentry * walk_hashtable(int & col, struct hentry * hp) const;
00018 
00019 private:
00020   HashMgr( const HashMgr & ); // not implemented
00021   HashMgr &operator=( const HashMgr & ); // not implemented
00022   int load_tables(const char * tpath);
00023   int add_word(const char * word, int wl, const char * ap, int al);
00024 
00025 };
00026 
00027 #endif