#include <hash.h>
Public Member Functions | |
UnivHash_linear (float m, count_t H, P pr) | |
UnivHash_linear (Moses::FileHandler *fin) | |
~UnivHash_linear () | |
T | hash (const char *s, count_t h) |
T | hash (const wordID_t *id, const int len, count_t h) |
T | hash (const wordID_t id, const count_t pos, const T prevValue, count_t h) |
void | save (Moses::FileHandler *fout) |
void | load (Moses::FileHandler *fin) |
Definition at line 49 of file hash.h.
UnivHash_linear< T >::UnivHash_linear | ( | float | m, | |
count_t | H, | |||
P | pr | |||
) | [inline] |
UnivHash_linear< T >::UnivHash_linear | ( | Moses::FileHandler * | fin | ) | [inline] |
UnivHash_linear< T >::~UnivHash_linear | ( | ) | [inline] |
T UnivHash_linear< T >::hash | ( | const wordID_t * | id, | |
const int | len, | |||
count_t | h | |||
) | [inline, virtual] |
Implements HashBase< T >.
Definition at line 303 of file hash.h.
References HashBase< T >::m_, T, and UTIL_THROW_IF2.
T UnivHash_linear< T >::hash | ( | const char * | s, | |
count_t | h | |||
) | [inline, virtual] |
Implements HashBase< T >.
Definition at line 63 of file hash.h.
Referenced by PerfectHash< T >::insert(), PerfectHash< T >::query(), PerfectHash< T >::remove(), PerfectHash< T >::update(), and PerfectHash< T >::update2().
void UnivHash_linear< T >::load | ( | Moses::FileHandler * | fin | ) | [inline, virtual] |
Reimplemented from HashBase< T >.
Definition at line 340 of file hash.h.
References MAX_NGRAM_ORDER, and T.
Referenced by UnivHash_linear< count_t >::UnivHash_linear().
void UnivHash_linear< T >::save | ( | Moses::FileHandler * | fout | ) | [inline, virtual] |
Reimplemented from HashBase< T >.
Definition at line 325 of file hash.h.
References MAX_NGRAM_ORDER.
Referenced by PerfectHash< T >::save().