1 #ifndef _GEMFIRE_HASHFUNCTION_HPP_ 2 #define _GEMFIRE_HASHFUNCTION_HPP_ 13 #include "gfcpp_globals.hpp" 43 HashSB(
const Hasher hashFn )
48 int32_t operator () (
const SharedBasePtr& p )
const 67 EqualToSB(
const EqualTo equalFn)
68 : m_equalFn( equalFn )
72 bool operator () (
const SharedBasePtr& x,
const SharedBasePtr& y )
const 74 return m_equalFn( x, y );
79 template <
typename TKEY >
80 inline int32_t hashFunction(
const TKEY& k )
82 return k->hashcode( );
85 template <
typename TKEY >
86 inline bool equalToFunction(
const TKEY& x,
const TKEY& y )
88 return ( *x.ptr( ) == *y.ptr( ) );
bool(* EqualTo)(const SharedBasePtr &, const SharedBasePtr &)
typedef for the hashing key equality function.
Definition: HashFunction.hpp:28
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
int32_t(* Hasher)(const SharedBasePtr &)
typedef for the hash function used by the hashing schemes.
Definition: HashFunction.hpp:25
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35