UnivHash_linear< T > Class Template Reference

#include <hash.h>

Inheritance diagram for UnivHash_linear< T >:

Inheritance graph
[legend]
Collaboration diagram for UnivHash_linear< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 UnivHash_linear (float m, count_t H, P pr)
 UnivHash_linear (FileHandler *fin)
 ~UnivHash_linear ()
hash (const char *s, count_t h)
hash (const wordID_t *id, const int len, count_t h)
hash (const wordID_t id, const count_t pos, const T prevValue, count_t h)
void save (FileHandler *fout)
void load (FileHandler *fin)


Detailed Description

template<typename T>
class UnivHash_linear< T >

Todo:
ask abby2

Definition at line 48 of file hash.h.


Constructor & Destructor Documentation

template<typename T>
UnivHash_linear< T >::UnivHash_linear ( float  m,
count_t  H,
P  pr 
) [inline]

Definition at line 51 of file hash.h.

template<typename T>
UnivHash_linear< T >::UnivHash_linear ( FileHandler fin  )  [inline]

Definition at line 56 of file hash.h.

template<typename T>
UnivHash_linear< T >::~UnivHash_linear (  )  [inline]

Definition at line 60 of file hash.h.


Member Function Documentation

template<typename T>
T UnivHash_linear< T >::hash ( const wordID_t  id,
const count_t  pos,
const T  prevValue,
count_t  h 
) [inline]

Definition at line 317 of file hash.h.

References CHECK, HashBase< T >::m_, and value.

template<typename T >
T UnivHash_linear< T >::hash ( const wordID_t id,
const int  len,
count_t  h 
) [inline, virtual]

Implements HashBase< T >.

Definition at line 304 of file hash.h.

References CHECK, HashBase< T >::m_, and value.

template<typename T>
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().

Here is the caller graph for this function:

template<typename T >
void UnivHash_linear< T >::load ( FileHandler fin  )  [inline]

Definition at line 340 of file hash.h.

References MAX_NGRAM_ORDER.

Referenced by UnivHash_linear< count_t >::UnivHash_linear().

Here is the caller graph for this function:

template<typename T >
void UnivHash_linear< T >::save ( FileHandler fout  )  [inline]

Definition at line 325 of file hash.h.

References MAX_NGRAM_ORDER.


The documentation for this class was generated from the following file:

Generated on Sat Sep 20 00:30:36 2014 for Moses by  doxygen 1.5.9