#include <hash.h>


Public Member Functions | |
| HashBase (float m, count_t H=1) | |
| HashBase (Moses::FileHandler *fin) | |
| virtual | ~HashBase () |
| virtual T | hash (const char *s, count_t h)=0 |
| virtual T | hash (const wordID_t *id, const int len, count_t h)=0 |
| count_t | size () |
| virtual void | save (Moses::FileHandler *fout) |
| virtual void | load (Moses::FileHandler *fin) |
Protected Member Functions | |
| virtual void | initSeeds ()=0 |
| virtual void | freeSeeds ()=0 |
Protected Attributes | |
| T | m_ |
| count_t | H_ |
Definition at line 15 of file hash.h.
| HashBase< T >::HashBase | ( | Moses::FileHandler * | fin | ) | [inline] |
| virtual T HashBase< T >::hash | ( | const wordID_t * | id, | |
| const int | len, | |||
| count_t | h | |||
| ) | [pure virtual] |
Implemented in UnivHash_linear< T >, UnivHash_noPrimes< T >, Hash_shiftAddXOR< T >, UnivHash_tableXOR< T >, and UnivHash_linear< count_t >.
Implemented in UnivHash_linear< T >, UnivHash_noPrimes< T >, Hash_shiftAddXOR< T >, UnivHash_tableXOR< T >, and UnivHash_linear< count_t >.
| virtual void HashBase< T >::load | ( | Moses::FileHandler * | fin | ) | [inline, virtual] |
Reimplemented in UnivHash_linear< T >, UnivHash_noPrimes< T >, and UnivHash_linear< count_t >.
Definition at line 40 of file hash.h.
Referenced by HashBase< T >::HashBase().

| virtual void HashBase< T >::save | ( | Moses::FileHandler * | fout | ) | [inline, virtual] |
Reimplemented in UnivHash_linear< T >, UnivHash_noPrimes< T >, and UnivHash_linear< count_t >.
Definition at line 32 of file hash.h.
Referenced by PerfectHash< T >::insert(), PerfectHash< T >::query(), PerfectHash< T >::remove(), PerfectHash< T >::update(), and PerfectHash< T >::update2().

Definition at line 19 of file hash.h.
Referenced by HashBase< T >::load(), HashBase< T >::save(), and HashBase< T >::size().
Definition at line 18 of file hash.h.
Referenced by HashBase< T >::load(), and HashBase< T >::save().
1.5.9