16 #if !defined(KRATOS_FNV_1A_HASH_H_INCLUDED)
17 #define KRATOS_FNV_1A_HASH_H_INCLUDED
73 static constexpr
HashType mFNV32OfsetBasis = 0x811c9dc5;
74 static constexpr
HashType mFNV32Prime = 0x1000193;
80 const char *
const TheString) {
81 return (TheString[0] ==
'\0')
139 static constexpr
HashType mFNV64OfsetBasis = 0xcbf29ce484222325;
140 static constexpr
HashType mFNV64Prime = 0x100000001b3;
146 const char *
const TheString) {
147 return (TheString[0] ==
'\0')
A constexpr version of FNV hash function. (32 bit version)
Definition: fnv_1a_hash.h:34
FNV1a32Hash(FNV1a32Hash const &rOther)=delete
Copy constructor.
FNV1a32Hash()=delete
The class is unconstructable.
FNV1a32Hash & operator=(FNV1a32Hash const &rOther)=delete
Assignment operator.
static constexpr HashType CalculateHash(const char *const TheString)
Definition: fnv_1a_hash.h:63
std::uint32_t HashType
The hash to be employed is 32 bits this time.
Definition: fnv_1a_hash.h:41
virtual ~FNV1a32Hash()=delete
Destructor.
A constexpr version of FNV hash function. (64 bit version)
Definition: fnv_1a_hash.h:100
FNV1a64Hash()=delete
The class is unconstructable.
std::uint64_t HashType
The hash to be employed is 64 bits this time.
Definition: fnv_1a_hash.h:107
FNV1a64Hash & operator=(FNV1a64Hash const &rOther)=delete
Assignment operator.
FNV1a64Hash(FNV1a64Hash const &rOther)=delete
Copy constructor.
virtual ~FNV1a64Hash()=delete
Destructor.
static constexpr HashType CalculateHash(const char *const TheString)
Definition: fnv_1a_hash.h:129
std::size_t HashType
The definition of the hash type.
Definition: key_hash.h:38
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21