Othello
 All Classes Files Functions Variables Macros
Hasher32< keyType > Class Template Reference

A hash function that hashes keyType to uint32_t. When SSE4.2 support is found, use sse4.2 instructions, otherwise use default hash function std::hash. More...

#include <hash.h>

Public Member Functions

void setMaskSeed (uint32_t _mask, uint32_t _seed)
 set bitmask and seed
 
template<class T = keyType>
std::enable_if
< std::is_integral< T >::value,
uint32_t >::type 
operator() (const keyType &k0) const
 
template<class T = keyType>
std::enable_if
<!std::is_integral< T >::value,
uint32_t >::type 
operator() (const keyType &k0) const
 

Public Attributes

uint32_t mask
 a bitmask for the return value. return value must be within [0..mask]
 
uint32_t s
 hash seed.
 

Detailed Description

template<class keyType>
class Hasher32< keyType >

A hash function that hashes keyType to uint32_t. When SSE4.2 support is found, use sse4.2 instructions, otherwise use default hash function std::hash.


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