Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
14c (14.1.1.0.0)

F23533-01

HashHelper Class Reference

#include <coherence/util/HashHelper.hpp>

Inherits Object.

List of all members.


Detailed Description

This abstract class contains helper functions for calculating hash code values for any group of C++ intrinsics.

Author:
hr 2011.08.30
Since:
Coherence 12.1.2

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.

Member Function Documentation

static size32_t hash ( bool  fValue,
size32_t  nHash 
) [static]

Calculate a running hash using the boolean value.

Parameters:
fValue the boolean value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( octet_t  bValue,
size32_t  nHash 
) [static]

Calculate a running hash using the octet_t value.

Parameters:
bValue the octet_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( wchar16_t  chValue,
size32_t  nHash 
) [static]

Calculate a running hash using the wchar16_t value.

Parameters:
chValue the wchar16_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( float64_t  dflValue,
size32_t  nHash 
) [static]

Calculate a running hash using the float64_t value.

Parameters:
dflValue the float64_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( float32_t  flValue,
size32_t  nHash 
) [static]

Calculate a running hash using the float32_t value.

Parameters:
flValue the float32_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( int32_t  nValue,
size32_t  nHash 
) [static]

Calculate a running hash using the int32_t value.

Parameters:
nValue the int32_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( int64_t  lValue,
size32_t  nHash 
) [static]

Calculate a running hash using the int64_t value.

Parameters:
nValue the int64_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( size32_t  nValue,
size32_t  nHash 
) [static]

Calculate a running hash using the size32_t value.

Parameters:
nValue the size32_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( size64_t  lValue,
size32_t  nHash 
) [static]

Calculate a running hash using the size64_t value.

Parameters:
lValue the size64_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( int16_t  shValue,
size32_t  nHash 
) [static]

Calculate a running hash using the int16_t value.

Parameters:
shValue the int16_t value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( Object::View  vValue,
size32_t  nHash 
) [static]

Calculate a running hash using the Object value.

Parameters:
vValue the Object value for use in the hash
nHash the running hash value
Returns:
the resulting 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.

Parameters:
ha the array for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( ObjectArray::View  avValue,
size32_t  nHash 
) [static]

Calculate a running hash using the ObjectArray value.

Parameters:
avValue the ObjectArray value for use in the hash
nHash the running hash value
Returns:
the resulting running hash value

static size32_t hash ( Collection::View  vCol,
size32_t  nHash 
) [static]

Calculate a running hash using the Collection value.

Parameters:
vCol the Collection value for use in the hash
nHash the running hash value
Returns:
the resulting 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.

Parameters:
nHash the running hash value
Returns:
the resulting running hash value


The documentation for this class was generated from the following file:
Copyright © 2000, 2020, Oracle and/or its affiliates. All rights reserved.