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 (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)


Detailed Description

template<typename T>
class UnivHash_linear< T >

Todo:
ask abby2

Definition at line 49 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 52 of file hash.h.

template<typename T>
UnivHash_linear< T >::UnivHash_linear ( Moses::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 HashBase< T >::m_, T, and UTIL_THROW_IF2.

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 303 of file hash.h.

References HashBase< T >::m_, T, and UTIL_THROW_IF2.

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 ( 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().

Here is the caller graph for this function:

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

Here is the caller graph for this function:


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

Generated on Mon Aug 17 00:32:21 2015 for Moses by  doxygen 1.5.9