#include <coherence/util/HashHelper.hpp>
Inherits Object.
Public Types | |
typedef spec::Handle | Handle |
HashHelper Handle definition. | |
typedef spec::View | View |
HashHelper View definition. | |
typedef spec::Holder | Holder |
HashHelper Holder definition. | |
Static Public Member Functions | |
static size32_t | hash (bool fValue, size32_t nHash) |
Calculate a running hash using the boolean value. | |
static size32_t | hash (octet_t bValue, size32_t nHash) |
Calculate a running hash using the octet_t value. | |
static size32_t | hash (wchar16_t chValue, size32_t nHash) |
Calculate a running hash using the wchar16_t value. | |
static size32_t | hash (float64_t dflValue, size32_t nHash) |
Calculate a running hash using the float64_t value. | |
static size32_t | hash (float32_t flValue, size32_t nHash) |
Calculate a running hash using the float32_t value. | |
static size32_t | hash (int32_t nValue, size32_t nHash) |
Calculate a running hash using the int32_t value. | |
static size32_t | hash (int64_t lValue, size32_t nHash) |
Calculate a running hash using the int64_t value. | |
static size32_t | hash (size32_t nValue, size32_t nHash) |
Calculate a running hash using the size32_t value. | |
static size32_t | hash (size64_t lValue, size32_t nHash) |
Calculate a running hash using the size64_t value. | |
static size32_t | hash (int16_t shValue, size32_t nHash) |
Calculate a running hash using the int16_t value. | |
static size32_t | hash (Object::View vValue, size32_t nHash) |
Calculate a running hash using the Object value. | |
template<class T> | |
static size32_t | hash (const TypedHandle< Array< T > > &ha, size32_t nHash) |
Calculate a running hash using the array delegating to the runtime type for each element. | |
static size32_t | hash (ObjectArray::View avValue, size32_t nHash) |
Calculate a running hash using the ObjectArray value. | |
static size32_t | hash (Collection::View vCol, size32_t nHash) |
Calculate a running hash using the Collection value. | |
Static Protected Member Functions | |
static size32_t | swizzle (size32_t nHash) |
Shift the running hash value to try and help with generating unique values given the same input, but in a different order. |
static size32_t hash | ( | bool | fValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the boolean value.
fValue | the boolean value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | octet_t | bValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the octet_t value.
bValue | the octet_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | wchar16_t | chValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the wchar16_t value.
chValue | the wchar16_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | float64_t | dflValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the float64_t value.
dflValue | the float64_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | float32_t | flValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the float32_t value.
flValue | the float32_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | int32_t | nValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the int32_t value.
nValue | the int32_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | int64_t | lValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the int64_t value.
nValue | the int64_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | size32_t | nValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the size32_t value.
nValue | the size32_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | size64_t | lValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the size64_t value.
lValue | the size64_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | int16_t | shValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the int16_t value.
shValue | the int16_t value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | Object::View | vValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the Object value.
vValue | the Object value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | const TypedHandle< Array< T > > & | ha, | |
size32_t | nHash | |||
) | [inline, static] |
Calculate a running hash using the array delegating to the runtime type for each element.
ha | the array for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | ObjectArray::View | avValue, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the ObjectArray value.
avValue | the ObjectArray value for use in the hash | |
nHash | the running hash value |
static size32_t hash | ( | Collection::View | vCol, | |
size32_t | nHash | |||
) | [static] |
Calculate a running hash using the Collection value.
vCol | the Collection value for use in the hash | |
nHash | the running hash value |
static size32_t swizzle | ( | size32_t | nHash | ) | [static, protected] |
Shift the running hash value to try and help with generating unique values given the same input, but in a different order.
nHash | the running hash value |