MarlinMT  0.1.0
marlinmt::HashHelper Class Reference

HashHelper class Helper class to generate hash 64 id. More...

#include <Utils.h>

Static Public Member Functions

static constexpr unsigned long long int doByte (unsigned long long int hash, unsigned char val)
 
static unsigned long long int hash64 (const char *key)
 Generate a hash 64 from a string. More...
 
template<typename T >
static unsigned long long int typeHash64 ()
 Generate a hash 64 from the typeid name. More...
 

Static Private Attributes

static const unsigned long long int hashinit = 14695981039346656037ull
 Init value for hash 64. More...
 

Detailed Description

HashHelper class Helper class to generate hash 64 id.

Definition at line 118 of file Utils.h.

Member Function Documentation

◆ doByte()

static constexpr unsigned long long int marlinmt::HashHelper::doByte ( unsigned long long int  hash,
unsigned char  val 
)
inlinestatic

Definition at line 124 of file Utils.h.

◆ hash64()

static unsigned long long int marlinmt::HashHelper::hash64 ( const char *  key)
inlinestatic

Generate a hash 64 from a string.

Parameters
keythe input string key

Definition at line 133 of file Utils.h.

◆ typeHash64()

template<typename T >
static unsigned long long int marlinmt::HashHelper::typeHash64 ( )
inlinestatic

Generate a hash 64 from the typeid name.

Definition at line 144 of file Utils.h.

Member Data Documentation

◆ hashinit

const unsigned long long int marlinmt::HashHelper::hashinit = 14695981039346656037ull
staticprivate

Init value for hash 64.

Definition at line 121 of file Utils.h.


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