1 #ifndef _GEMFIRE_CACHEABLEKEYS_HPP_ 2 #define _GEMFIRE_CACHEABLEKEYS_HPP_ 12 #include "gfcpp_globals.hpp" 20 template <
typename TObj>
21 inline bool equals(
const TObj& x,
const TObj& y )
28 inline uint32_t hashcode(
const bool value )
30 if (value)
return 1231;
34 inline uint32_t hashcode(
const uint8_t value )
36 return (uint32_t)value;
39 inline uint32_t hashcode(
const int8_t value )
41 return (uint32_t)value;
44 inline uint32_t hashcode(
const uint16_t value )
46 return (uint32_t)value;
49 inline uint32_t hashcode(
const int16_t value )
51 return (uint32_t)value;
54 inline uint32_t hashcode(
const uint32_t value )
59 inline uint32_t hashcode(
const int32_t value )
61 return (uint32_t)value;
64 inline uint32_t hashcode(
const uint64_t value )
66 uint32_t hash = (uint32_t)value;
67 hash = hash ^ (uint32_t)(value >> 32);
71 inline uint32_t hashcode(
const int64_t value )
73 uint32_t hash = (uint32_t)value;
74 hash = hash ^ (uint32_t)(value >> 32);
78 inline uint32_t hashcode(
const float value )
89 inline uint32_t hashcode(
const double value )
104 #endif // _GEMFIRE_CACHEABLEKEYS_HPP_ This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19