DefaultHash Struct Reference

#include <hash.h>

Public Types

using  ValueType = HashInt

公共成员函数

MAXON_IMPLICIT   DefaultHash ( HashInt start= EMPTY_HASH )
void  Combine ( HashInt value)
void  CombineUnordered ( HashInt value)
  operator HashInt () const

静态公共成员函数

static constexpr UInt32   Mix ( UInt32 h)
static constexpr UInt64   Mix ( UInt64 h)
static constexpr HashInt   SplitMix ( HashInt value)
template<typename... R>
static HashInt   CombineHashes ( HashInt first, R... rest)

Public Attributes

HashInt   state

静态公共属性

static constexpr HashInt   EMPTY_HASH

Static Private Member Functions

static void  CombineHashesImpl ( DefaultHash &hash)
template<typename... R>
static void  CombineHashesImpl ( DefaultHash &hash, HashInt x, R... rest)

Member Typedef Documentation

◆  ValueType

using ValueType = HashInt

构造函数 & 析构函数文档编制

◆  DefaultHash()

MAXON_IMPLICIT DefaultHash ( HashInt   start = EMPTY_HASH )

成员函数文档编制

◆  Mix() [1/2]

static constexpr UInt32 Mix ( UInt32   h )
static constexpr

◆  Mix() [2/2]

static constexpr UInt64 Mix ( UInt64   h )
static constexpr

◆  SplitMix()

static constexpr HashInt SplitMix ( HashInt   value )
static constexpr

◆  Combine()

void Combine ( HashInt   value )

◆  CombineUnordered()

void CombineUnordered ( HashInt   value )

◆  operator HashInt()

operator HashInt ( ) const

◆  CombineHashes()

static HashInt CombineHashes ( HashInt   first ,
R...  rest  
)
static

◆  CombineHashesImpl() [1/2]

static void CombineHashesImpl ( DefaultHash hash )
static private

◆  CombineHashesImpl() [2/2]

static void CombineHashesImpl ( DefaultHash hash ,
HashInt   x ,
R...  rest  
)
static private

Member Data Documentation

◆  EMPTY_HASH

constexpr HashInt EMPTY_HASH
static constexpr

◆  state

HashInt state