Murl::Util::Hash Namespace Reference

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()

UInt32 Murl::Util::Hash::GetMemoryHashValue ( const void *  ptr,
const UInt64  byteSize 
)
inline

Compute a hash value from a memory block.

Parameters
ptrPointer to the source memory block.
byteSizeThe byte size of the memory block.
Returns
The hash value.

Referenced by Murl::ConstData::GetHashValue(), and GetHashValue().

◆ GetPointerHashValue()

UInt32 Murl::Util::Hash::GetPointerHashValue ( const void *  ptr)
inline

Compute a hash value from a memory pointer.

Parameters
ptrThe memory pointer.
Returns
The hash value.

Referenced by GetHashValue(), and Murl::PtrHash::operator()().

◆ GetHashValue() [1/15]

template<class DataType >
UInt32 Murl::Util::Hash::GetHashValue ( const DataType &  x)
inline

Compute a hash value from an object.

Parameters
xThe object which has implemented a GetHashValue method.
Returns
The hash value.

Referenced by Murl::StdHash< DataType >::operator()().

◆ GetHashValue() [2/15]

template<class DataType >
UInt32 Murl::Util::Hash::GetHashValue ( SharedPointer< DataType >  ptr)
inline

Compute a hash value from a shared pointer.

Parameters
ptrThe shared pointer.
Returns
The hash value.

References Murl::SharedPointer< DataType >::Get(), and GetPointerHashValue().

◆ GetHashValue() [3/15]

template<class DataType >
UInt32 Murl::Util::Hash::GetHashValue ( DataType *  ptr)
inline

Compute a hash value from an object pointer.

Parameters
ptrThe object pointer.
Returns
The hash value.

References GetPointerHashValue().

◆ GetHashValue() [4/15]

UInt32 Murl::Util::Hash::GetHashValue ( const Char  x)
inline

Compute a hash value from a character value.

Parameters
xThe character value.
Returns
The hash value.

◆ GetHashValue() [5/15]

UInt32 Murl::Util::Hash::GetHashValue ( const Bool  x)
inline

Compute a hash value from a boolean value.

Parameters
xThe boolean value.
Returns
The hash value.

◆ GetHashValue() [6/15]

UInt32 Murl::Util::Hash::GetHashValue ( const SInt8  x)
inline

Compute a hash value from a SInt8 value.

Parameters
xThe SInt8 value.
Returns
The hash value.

◆ GetHashValue() [7/15]

UInt32 Murl::Util::Hash::GetHashValue ( const UInt8  x)
inline

Compute a hash value from a UInt8 value.

Parameters
xThe UInt8 value.
Returns
The hash value.

◆ GetHashValue() [8/15]

UInt32 Murl::Util::Hash::GetHashValue ( const SInt16  x)
inline

Compute a hash value from a SInt16 value.

Parameters
xThe SInt16 value.
Returns
The hash value.

◆ GetHashValue() [9/15]

UInt32 Murl::Util::Hash::GetHashValue ( const UInt16  x)
inline

Compute a hash value from a UInt16 value.

Parameters
xThe UInt16 value.
Returns
The hash value.

◆ GetHashValue() [10/15]

UInt32 Murl::Util::Hash::GetHashValue ( const SInt32  x)
inline

Compute a hash value from a SInt32 value.

Parameters
xThe SInt32 value.
Returns
The hash value.

◆ GetHashValue() [11/15]

UInt32 Murl::Util::Hash::GetHashValue ( const UInt32  x)
inline

Compute a hash value from a UInt32 value.

Parameters
xThe UInt32 value.
Returns
The hash value.

◆ GetHashValue() [12/15]

UInt32 Murl::Util::Hash::GetHashValue ( const SInt64 x)
inline

Compute a hash value from a SInt64 value.

Parameters
xThe SInt64 value.
Returns
The hash value.

References GetMemoryHashValue().

◆ GetHashValue() [13/15]

UInt32 Murl::Util::Hash::GetHashValue ( const UInt64 x)
inline

Compute a hash value from a UInt64 value.

Parameters
xThe UInt64 value.
Returns
The hash value.

References GetMemoryHashValue().

◆ GetHashValue() [14/15]

UInt32 Murl::Util::Hash::GetHashValue ( const Float x)
inline

Compute a hash value from a float value.

Parameters
xThe float value.
Returns
The hash value.

References GetMemoryHashValue().

◆ GetHashValue() [15/15]

UInt32 Murl::Util::Hash::GetHashValue ( const Double x)
inline

Compute a hash value from a double value.

Parameters
xThe double value.
Returns
The hash value.

References GetMemoryHashValue().


Copyright © 2011-2024 Spraylight GmbH.