EpcTools
An event based multi-threaded C++ development framework.
Static Public Member Functions | List of all members
EMurmurHash64 Class Reference

Calcuates a 64-bit murmur hash for the specified value. More...

#include <ehash.h>

Static Public Member Functions

static size_t combine (size_t h1, size_t h2)
 Combines 2 64-bit hash values. More...
 
static size_t getHash (cChar val, size_t seed=0xc70f6907UL)
 Calculates a 64-bit murmur hash for the value. More...
 
static size_t getHash (cUChar val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cShort val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cUShort val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cLong val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cULong val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cLongLong val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cULongLong val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cFloat val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cDouble val, size_t seed=0xc70f6907UL)
 
static size_t getHash (const EString &val, size_t seed=0xc70f6907UL)
 
static size_t getHash (cpChar val, size_t len, size_t seed=0xc70f6907UL)
 Calculates a 64-bit murmur hash for the value. More...
 
static size_t getHash (cpUChar val, size_t len, size_t seed=0xc70f6907UL)
 

Detailed Description

Calcuates a 64-bit murmur hash for the specified value.

Member Function Documentation

static size_t EMurmurHash64::combine ( size_t  h1,
size_t  h2 
)
inlinestatic

Combines 2 64-bit hash values.

Parameters
h1The first 64-bit hash value.
h2The second 64-bit hash value.
Returns
The rsulting 64-bit combined hash value.
static size_t EMurmurHash64::getHash ( cChar  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic

Calculates a 64-bit murmur hash for the value.

Parameters
valThe value to calculate the hash for.
seedThe seed to be used for the hash calculation.
Returns
The 64-but murmur hash value.
static size_t EMurmurHash64::getHash ( cUChar  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cShort  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cUShort  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cLong  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cULong  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cLongLong  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cULongLong  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cFloat  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cDouble  val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( const EString val,
size_t  seed = 0xc70f6907UL 
)
inlinestatic
static size_t EMurmurHash64::getHash ( cpChar  val,
size_t  len,
size_t  seed = 0xc70f6907UL 
)
inlinestatic

Calculates a 64-bit murmur hash for the value.

Parameters
valThe value to calculate the hash for.
lenThe length of the value in bytes.
seedThe seed to be used for the hash calculation.
Returns
The 64-bit murmur hash value.
static size_t EMurmurHash64::getHash ( cpUChar  val,
size_t  len,
size_t  seed = 0xc70f6907UL 
)
inlinestatic

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