Basic hash functions. More...
Functions | |
UInt32 | GetMemoryHashValue (const void *ptr, const UInt64 byteSize) |
Compute a hash value from a memory block. More... | |
UInt32 | GetPointerHashValue (const void *ptr) |
Compute a hash value from a memory pointer. More... | |
template<class DataType > | |
UInt32 | GetHashValue (const DataType &x) |
Compute a hash value from an object. More... | |
template<class DataType > | |
UInt32 | GetHashValue (SharedPointer< DataType > ptr) |
Compute a hash value from a shared pointer. More... | |
template<class DataType > | |
UInt32 | GetHashValue (DataType *ptr) |
Compute a hash value from an object pointer. More... | |
UInt32 | GetHashValue (const Char x) |
Compute a hash value from a character value. More... | |
UInt32 | GetHashValue (const Bool x) |
Compute a hash value from a boolean value. More... | |
UInt32 | GetHashValue (const SInt8 x) |
Compute a hash value from a SInt8 value. More... | |
UInt32 | GetHashValue (const UInt8 x) |
Compute a hash value from a UInt8 value. More... | |
UInt32 | GetHashValue (const SInt16 x) |
Compute a hash value from a SInt16 value. More... | |
UInt32 | GetHashValue (const UInt16 x) |
Compute a hash value from a UInt16 value. More... | |
UInt32 | GetHashValue (const SInt32 x) |
Compute a hash value from a SInt32 value. More... | |
UInt32 | GetHashValue (const UInt32 x) |
Compute a hash value from a UInt32 value. More... | |
UInt32 | GetHashValue (const SInt64 &x) |
Compute a hash value from a SInt64 value. More... | |
UInt32 | GetHashValue (const UInt64 &x) |
Compute a hash value from a UInt64 value. More... | |
UInt32 | GetHashValue (const Float &x) |
Compute a hash value from a float value. More... | |
UInt32 | GetHashValue (const Double &x) |
Compute a hash value from a double value. More... | |
Detailed Description
Basic hash functions.
Function Documentation
◆ GetMemoryHashValue()
Compute a hash value from a memory block.
- Parameters
-
ptr Pointer to the source memory block. byteSize The byte size of the memory block.
- Returns
- The hash value.
Referenced by Murl::ConstData::GetHashValue(), and GetHashValue().
◆ GetPointerHashValue()
|
inline |
Compute a hash value from a memory pointer.
- Parameters
-
ptr The memory pointer.
- Returns
- The hash value.
Referenced by GetHashValue(), and Murl::PtrHash::operator()().
◆ GetHashValue() [1/15]
|
inline |
Compute a hash value from an object.
- Parameters
-
x The object which has implemented a GetHashValue method.
- Returns
- The hash value.
Referenced by Murl::StdHash< DataType >::operator()().
◆ GetHashValue() [2/15]
|
inline |
Compute a hash value from a shared pointer.
- Parameters
-
ptr The shared pointer.
- Returns
- The hash value.
References Murl::SharedPointer< DataType >::Get(), and GetPointerHashValue().
◆ GetHashValue() [3/15]
|
inline |
Compute a hash value from an object pointer.
- Parameters
-
ptr The object pointer.
- Returns
- The hash value.
References GetPointerHashValue().
◆ GetHashValue() [4/15]
Compute a hash value from a character value.
- Parameters
-
x The character value.
- Returns
- The hash value.
◆ GetHashValue() [5/15]
Compute a hash value from a boolean value.
- Parameters
-
x The boolean value.
- Returns
- The hash value.
◆ GetHashValue() [6/15]
Compute a hash value from a SInt8 value.
- Parameters
-
x The SInt8 value.
- Returns
- The hash value.
◆ GetHashValue() [7/15]
Compute a hash value from a UInt8 value.
- Parameters
-
x The UInt8 value.
- Returns
- The hash value.
◆ GetHashValue() [8/15]
Compute a hash value from a SInt16 value.
- Parameters
-
x The SInt16 value.
- Returns
- The hash value.
◆ GetHashValue() [9/15]
Compute a hash value from a UInt16 value.
- Parameters
-
x The UInt16 value.
- Returns
- The hash value.
◆ GetHashValue() [10/15]
Compute a hash value from a SInt32 value.
- Parameters
-
x The SInt32 value.
- Returns
- The hash value.
◆ GetHashValue() [11/15]
Compute a hash value from a UInt32 value.
- Parameters
-
x The UInt32 value.
- Returns
- The hash value.
◆ GetHashValue() [12/15]
Compute a hash value from a SInt64 value.
- Parameters
-
x The SInt64 value.
- Returns
- The hash value.
References GetMemoryHashValue().
◆ GetHashValue() [13/15]
Compute a hash value from a UInt64 value.
- Parameters
-
x The UInt64 value.
- Returns
- The hash value.
References GetMemoryHashValue().
◆ GetHashValue() [14/15]
Compute a hash value from a float value.
- Parameters
-
x The float value.
- Returns
- The hash value.
References GetMemoryHashValue().
◆ GetHashValue() [15/15]
Compute a hash value from a double value.
- Parameters
-
x The double value.
- Returns
- The hash value.
References GetMemoryHashValue().