GemStone::GemFire::Cache::Generic::CacheableInt64 Class Reference

Inherits GemStone::GemFire::Cache::Generic::CacheableBuiltinKey< TNative, TManaged, TYPEID >< gemfire::CacheableInt64, int64_t, GemFireClassIds::CacheableInt64 >.


Detailed Description

An immutable wrapper for 64-bit integers that can serve as a distributable key object for caching.

Public Member Functions

 CacheableInt64 (int64_t value)
 CacheableInt64 ()
virtual bool Equals (Object^ obj) override
virtual bool Equals (ICacheableKey^ other) override
virtual
GemStone::GemFire::Cache::Generic::IGFSerializable
FromData (GemStone::GemFire::Cache::Generic::DataInput^ input)
virtual int32_t GetHashCode () override
bool operator== (TManaged other)
virtual void ToData (GemStone::GemFire::Cache::Generic::DataOutput^ output)
virtual String^ ToString () override

Static Public Member Functions

static CacheableInt64Create (int64_t value)
static IGFSerializableCreateDeserializable ()
static operator CacheableKey^ (String^ value)
static operator CacheableKey^ (int64_t value)
static operator CacheableKey^ (int32_t value)
static operator CacheableKey^ (Char value)
static operator CacheableKey^ (int16_t value)
static operator CacheableKey^ (Single value)
static operator CacheableKey^ (Double value)
static operator CacheableKey^ (Byte value)
static operator CacheableKey^ (bool value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< String^ >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (String^ value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< int64_t >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< int32_t >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (int32_t value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< int16_t >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< Char >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (Char value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (int16_t value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< Single >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (Single value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< Double >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (Double value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< bool >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (array< Byte >^value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (Byte value)
static operator GemStone::GemFire::Cache::Generic::Serializable^ (bool value)
static operator int64_t (CacheableInt64^ value)
static operator Serializable^ (int64_t value)
static void RegisterPdxSerializer (IPdxSerializer^ pdxSerializer)
static void RegisterPdxType (PdxTypeFactoryMethod^ creationMethod)
static void RegisterTypeGeneric (TypeFactoryMethodGeneric^ creationMethod)
static void SetPdxTypeMapper (IPdxTypeMapper^ pdxTypeMapper)

Protected Member Functions

void _SetNativePtr (gemfire::Serializable *nativeptr)
void AssignPtr (gemfire::Serializable *nativeptr)
void InternalCleanup ()
void SetPtr (gemfire::Serializable *nativeptr)

Properties

virtual uint32_t ClassId [get]
virtual uint32_t ObjectSize [get]
TManaged Value [get]

Constructor & Destructor Documentation

GemStone::GemFire::Cache::Generic::CacheableInt64::CacheableInt64 (  )  [inline]

Allocates a new instance with the given value.

Parameters:
value the value of the new instance

GemStone::GemFire::Cache::Generic::CacheableInt64::CacheableInt64 ( int64_t  value  )  [inline]

Allocates a new instance with the given value.

Parameters:
value the value of the new instance


Member Function Documentation

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::Serializable >::_SetNativePtr ( gemfire::Serializable *  nativeptr  )  [inline, protected, inherited]

Set the native pointer to the new object without doing a preserveSB(). DO NOT USE UNLESS YOU KNOW WHAT YOU ARE DOING.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::Serializable >::AssignPtr ( gemfire::Serializable *  nativeptr  )  [inline, protected, inherited]

Used to assign the native pointer to a new object.

Note the order of preserveSB() and releaseSB(). This handles the corner case when m_nativeptr is same as nativeptr.

static CacheableInt64 ^ GemStone::GemFire::Cache::Generic::CacheableInt64::Create ( int64_t  value  )  [inline, static]

Static function to create a new instance given value.

Parameters:
value the value of the new instance

static IGFSerializable ^ GemStone::GemFire::Cache::Generic::CacheableInt64::CreateDeserializable (  )  [inline, static]

Factory function to register this class.

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual bool GemStone::GemFire::Cache::Generic::CacheableBuiltinKey< TNative, TManaged, TYPEID >::Equals ( Object^   obj  )  [inline, override, virtual, inherited]

Return true if this key matches other object. It invokes the '==' operator of the underlying native object.

Reimplemented from GemStone::GemFire::Cache::Generic::CacheableKey.

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual bool GemStone::GemFire::Cache::Generic::CacheableBuiltinKey< TNative, TManaged, TYPEID >::Equals ( ICacheableKey^   other  )  [inline, override, virtual, inherited]

Return true if this key matches other object. It invokes the '==' operator of the underlying native object.

Reimplemented from GemStone::GemFire::Cache::Generic::CacheableKey.

virtual GemStone::GemFire::Cache::Generic::IGFSerializable ^ GemStone::GemFire::Cache::Generic::Serializable::FromData ( GemStone::GemFire::Cache::Generic::DataInput^   input  )  [virtual, inherited]

Deserializes the native (C++) object -- returns an instance of the Serializable class with the native object wrapped inside.

Parameters:
input the DataInput stream to use for reading the object data
Returns:
the deserialized object

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

Reimplemented in GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< TYPEID, HSTYPE >, GemStone::GemFire::Cache::Generic::CacheableStringArray, GemStone::GemFire::Cache::Generic::CacheableString, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableBytes, gemfire::CacheableBytesPtr, Byte, GemFireClassIds::CacheableBytes >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt32Array, gemfire::CacheableInt32ArrayPtr, int32_t, GemFireClassIds::CacheableInt32Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CharArray, gemfire::CharArrayPtr, Char, GemFireClassIds::CharArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt64Array, gemfire::CacheableInt64ArrayPtr, int64_t, GemFireClassIds::CacheableInt64Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableFloatArray, gemfire::CacheableFloatArrayPtr, Single, GemFireClassIds::CacheableFloatArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt16Array, gemfire::CacheableInt16ArrayPtr, int16_t, GemFireClassIds::CacheableInt16Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableDoubleArray, gemfire::CacheableDoubleArrayPtr, Double, GemFireClassIds::CacheableDoubleArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::BooleanArray, gemfire::BooleanArrayPtr, bool, GemFireClassIds::BooleanArray >, GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< GemStone::GemFire::Cache::Generic::GemFireClassIds::CacheableHashSet, gemfire::CacheableHashSet >, and GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< GemStone::GemFire::Cache::Generic::GemFireClassIds::CacheableLinkedHashSet, gemfire::CacheableLinkedHashSet >.

virtual int32_t GemStone::GemFire::Cache::Generic::CacheableKey::GetHashCode (  )  [override, virtual, inherited]

Return the hashcode for this key. It gets the hash code by calling the hashcode() function of the underlying gemfire::CacheableKey object.

Implements GemStone::GemFire::Cache::Generic::ICacheableKey.

Reimplemented in GemStone::GemFire::Cache::Generic::CacheableString.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::Serializable >::InternalCleanup (  )  [inline, protected, inherited]

Internal cleanup function invoked by dispose/finalizer.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( String^   value  )  [static, inherited]

Implicit conversion operator from a string to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( int64_t  value  )  [static, inherited]

Implicit conversion operator from a 64-bit integer to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( int32_t  value  )  [static, inherited]

Implicit conversion operator from a 32-bit integer to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( Char  value  )  [static, inherited]

Implicit conversion operator from a character to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( int16_t  value  )  [static, inherited]

Implicit conversion operator from a 16-bit integer to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( Single  value  )  [static, inherited]

Implicit conversion operator from a float to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( Double  value  )  [static, inherited]

Implicit conversion operator from a double to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( Byte  value  )  [static, inherited]

Implicit conversion operator from a byte to a CacheableKey.

static GemStone::GemFire::Cache::Generic::CacheableKey::operator CacheableKey^ ( bool  value  )  [static, inherited]

Implicit conversion operator from a boolean to a CacheableKey.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< String^ >^  value  )  [static, inherited]

Implicit conversion operator from a string array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( String^   value  )  [static, inherited]

Implicit conversion operator from a string to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< int64_t >^  value  )  [static, inherited]

Implicit conversion operator from a 64-bit integer array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< int32_t >^  value  )  [static, inherited]

Implicit conversion operator from a 32-bit integer array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( int32_t  value  )  [static, inherited]

Implicit conversion operator from a 32-bit integer to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< int16_t >^  value  )  [static, inherited]

Implicit conversion operator from a 16-bit integer array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< Char >^  value  )  [static, inherited]

Implicit conversion operator from a character array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( Char  value  )  [static, inherited]

Implicit conversion operator from a character to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( int16_t  value  )  [static, inherited]

Implicit conversion operator from a 16-bit integer to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< Single >^  value  )  [static, inherited]

Implicit conversion operator from a float array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( Single  value  )  [static, inherited]

Implicit conversion operator from a float to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< Double >^  value  )  [static, inherited]

Implicit conversion operator from a double array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( Double  value  )  [static, inherited]

Implicit conversion operator from a double to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< bool >^  value  )  [static, inherited]

Implicit conversion operator from an boolean array to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( array< Byte >^  value  )  [static, inherited]

Implicit conversion operator from an array of bytes to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( Byte  value  )  [static, inherited]

Implicit conversion operator from a byte to a Serializable.

static GemStone::GemFire::Cache::Generic::Serializable::operator GemStone::GemFire::Cache::Generic::Serializable^ ( bool  value  )  [static, inherited]

Implicit conversion operator from a boolean to a Serializable.

static GemStone::GemFire::Cache::Generic::CacheableInt64::operator int64_t ( CacheableInt64^   value  )  [inline, explicit, static]

Explicit conversion operator to contained value type.

static GemStone::GemFire::Cache::Generic::Serializable::operator Serializable^ ( int64_t  value  )  [static, inherited]

Implicit conversion operator from a 64-bit integer to a Serializable.

template<typename TNative, typename TManaged, uint32_t TYPEID>
bool GemStone::GemFire::Cache::Generic::CacheableBuiltinKey< TNative, TManaged, TYPEID >::operator== ( TManaged  other  )  [inline, inherited]

Comparison operator against another value.

static void GemStone::GemFire::Cache::Generic::Serializable::RegisterPdxSerializer ( IPdxSerializer^   pdxSerializer  )  [static, inherited]

Set the PDX serializer for the cache. If this serializer is set, it will be consulted to see if it can serialize any domain classes which are added to the cache in portable data exchange format.

static void GemStone::GemFire::Cache::Generic::Serializable::RegisterPdxType ( PdxTypeFactoryMethod^   creationMethod  )  [static, inherited]

Register an instance factory method for a given type. This should be used when registering types that implement IPdxSerializable.

Parameters:
creationMethod the creation function to register
Exceptions:
IllegalArgumentException if the method is null

static void GemStone::GemFire::Cache::Generic::Serializable::RegisterTypeGeneric ( TypeFactoryMethodGeneric^   creationMethod  )  [static, inherited]

Register an instance factory method for a given type. This should be used when registering types that implement IGFSerializable.

Parameters:
creationMethod the creation function to register
Exceptions:
IllegalArgumentException if the method is null
IllegalStateException if the typeId has already been registered, or there is an error in registering the type; check Utils::LastError for more information in the latter case.

static void GemStone::GemFire::Cache::Generic::Serializable::SetPdxTypeMapper ( IPdxTypeMapper^   pdxTypeMapper  )  [static, inherited]

Register an PdxTypeMapper to map the local types to pdx types

Parameters:
pdxTypeMapper Object which implements IPdxTypeMapper interface

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::Serializable >::SetPtr ( gemfire::Serializable *  nativeptr  )  [inline, protected, inherited]

Used to set the native pointer to a new object. This should only be used when you know that the underlying object is NULL.

virtual void GemStone::GemFire::Cache::Generic::Serializable::ToData ( GemStone::GemFire::Cache::Generic::DataOutput^   output  )  [virtual, inherited]

Serializes this native (C++) object.

Parameters:
output the DataOutput object to use for serializing the object

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

Reimplemented in GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< TYPEID, HSTYPE >, GemStone::GemFire::Cache::Generic::CacheableStringArray, GemStone::GemFire::Cache::Generic::CacheableString, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableBytes, gemfire::CacheableBytesPtr, Byte, GemFireClassIds::CacheableBytes >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt32Array, gemfire::CacheableInt32ArrayPtr, int32_t, GemFireClassIds::CacheableInt32Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CharArray, gemfire::CharArrayPtr, Char, GemFireClassIds::CharArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt64Array, gemfire::CacheableInt64ArrayPtr, int64_t, GemFireClassIds::CacheableInt64Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableFloatArray, gemfire::CacheableFloatArrayPtr, Single, GemFireClassIds::CacheableFloatArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt16Array, gemfire::CacheableInt16ArrayPtr, int16_t, GemFireClassIds::CacheableInt16Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableDoubleArray, gemfire::CacheableDoubleArrayPtr, Double, GemFireClassIds::CacheableDoubleArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::BooleanArray, gemfire::BooleanArrayPtr, bool, GemFireClassIds::BooleanArray >, GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< GemStone::GemFire::Cache::Generic::GemFireClassIds::CacheableHashSet, gemfire::CacheableHashSet >, and GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< GemStone::GemFire::Cache::Generic::GemFireClassIds::CacheableLinkedHashSet, gemfire::CacheableLinkedHashSet >.

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual String ^ GemStone::GemFire::Cache::Generic::CacheableBuiltinKey< TNative, TManaged, TYPEID >::ToString (  )  [inline, override, virtual, inherited]

Return a string representation of the object. This returns the string for the Value property.

Reimplemented from GemStone::GemFire::Cache::Generic::Serializable.


Property Documentation

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual uint32_t GemStone::GemFire::Cache::Generic::CacheableBuiltinKey< TNative, TManaged, TYPEID >::ClassId [get, inherited]

Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.

Returns:
the classId

Reimplemented from GemStone::GemFire::Cache::Generic::Serializable.

virtual uint32_t GemStone::GemFire::Cache::Generic::Serializable::ObjectSize [get, inherited]

return the size of this object in bytes

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

Reimplemented in GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< TYPEID, HSTYPE >, GemStone::GemFire::Cache::Generic::CacheableStringArray, GemStone::GemFire::Cache::Generic::CacheableString, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableBytes, gemfire::CacheableBytesPtr, Byte, GemFireClassIds::CacheableBytes >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt32Array, gemfire::CacheableInt32ArrayPtr, int32_t, GemFireClassIds::CacheableInt32Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CharArray, gemfire::CharArrayPtr, Char, GemFireClassIds::CharArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt64Array, gemfire::CacheableInt64ArrayPtr, int64_t, GemFireClassIds::CacheableInt64Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableFloatArray, gemfire::CacheableFloatArrayPtr, Single, GemFireClassIds::CacheableFloatArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableInt16Array, gemfire::CacheableInt16ArrayPtr, int16_t, GemFireClassIds::CacheableInt16Array >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::CacheableDoubleArray, gemfire::CacheableDoubleArrayPtr, Double, GemFireClassIds::CacheableDoubleArray >, GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< gemfire::BooleanArray, gemfire::BooleanArrayPtr, bool, GemFireClassIds::BooleanArray >, GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< GemStone::GemFire::Cache::Generic::GemFireClassIds::CacheableHashSet, gemfire::CacheableHashSet >, and GemStone::GemFire::Cache::Generic::Internal::CacheableHashSetType< GemStone::GemFire::Cache::Generic::GemFireClassIds::CacheableLinkedHashSet, gemfire::CacheableLinkedHashSet >.

template<typename TNative, typename TManaged, uint32_t TYPEID>
TManaged GemStone::GemFire::Cache::Generic::CacheableBuiltinKey< TNative, TManaged, TYPEID >::Value [get, inherited]

Gets the value.


GemFire C++ Cache .NET API Documentation