UnivHash_noPrimes< T > Class Template Reference

#include <hash.h>

Inheritance diagram for UnivHash_noPrimes< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 UnivHash_noPrimes (float k, float l)
 UnivHash_noPrimes (Moses::FileHandler *fin)
 ~UnivHash_noPrimes ()
T hash (const char *s, count_t h)
T hash (const wordID_t *id, const int len, count_t h)
T hash (const P x, count_t h)
void save (Moses::FileHandler *fout)
void load (Moses::FileHandler *fin)


Detailed Description

template<typename T>
class UnivHash_noPrimes< T >

UnivHash_noPrimes: From Dietzfelbinger 2008 p = input domain range = 2^l m = output range = 2^k # of hash function = 2^(l-1)

Definition at line 85 of file hash.h.


Constructor & Destructor Documentation

template<typename T >
UnivHash_noPrimes< T >::UnivHash_noPrimes ( float  k,
float  l 
) [inline]

Definition at line 88 of file hash.h.

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

Definition at line 94 of file hash.h.

References UnivHash_noPrimes< T >::load().

Here is the call graph for this function:

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

Definition at line 98 of file hash.h.


Member Function Documentation

template<typename T >
T UnivHash_noPrimes< T >::hash ( const P  x,
count_t  h 
) [inline]

Definition at line 225 of file hash.h.

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

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

Implements HashBase< T >.

Definition at line 232 of file hash.h.

References UnivHash_noPrimes< T >::hash(), HashBase< T >::m_, and T.

Here is the call graph for this function:

template<typename T >
T UnivHash_noPrimes< T >::hash ( const char *  s,
count_t  h 
) [inline, virtual]

Implements HashBase< T >.

Definition at line 244 of file hash.h.

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

Referenced by UnivHash_noPrimes< T >::hash().

Here is the caller graph for this function:

template<typename T >
void UnivHash_noPrimes< T >::load ( Moses::FileHandler fin  )  [inline, virtual]

Reimplemented from HashBase< T >.

Definition at line 265 of file hash.h.

References T.

Referenced by UnivHash_noPrimes< T >::UnivHash_noPrimes().

Here is the caller graph for this function:

template<typename T >
void UnivHash_noPrimes< T >::save ( Moses::FileHandler fout  )  [inline, virtual]

Reimplemented from HashBase< T >.

Definition at line 255 of file hash.h.

References T.


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

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