GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID > Class Template Reference

Inherits GemStone::GemFire::Cache::CacheableKey.

Inherited by GemStone::GemFire::Cache::CacheableCharacter, and GemStone::GemFire::Cache::CacheableFloat.


Detailed Description

template<typename TNative, typename TManaged, uint32_t TYPEID>
class GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >

An immutable template wrapper for C++ CacheableKeys that can serve as a distributable key object for caching.

Public Member Functions

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

Static Public Member Functions

static operator GemStone::GemFire::Cache::CacheableKey^ (String^ value)
static operator GemStone::GemFire::Cache::CacheableKey^ (int64_t value)
static operator GemStone::GemFire::Cache::CacheableKey^ (int32_t value)
static operator GemStone::GemFire::Cache::CacheableKey^ (Char value)
static operator GemStone::GemFire::Cache::CacheableKey^ (int16_t value)
static operator GemStone::GemFire::Cache::CacheableKey^ (Single value)
static operator GemStone::GemFire::Cache::CacheableKey^ (Double value)
static operator GemStone::GemFire::Cache::CacheableKey^ (Byte value)
static operator GemStone::GemFire::Cache::CacheableKey^ (bool value)
static operator GemStone::GemFire::Cache::Serializable^ (array< String^ >^value)
static operator GemStone::GemFire::Cache::Serializable^ (String^ value)
static operator GemStone::GemFire::Cache::Serializable^ (array< int64_t >^value)
static operator GemStone::GemFire::Cache::Serializable^ (array< int32_t >^value)
static operator GemStone::GemFire::Cache::Serializable^ (int32_t value)
static operator GemStone::GemFire::Cache::Serializable^ (array< int16_t >^value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Char >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Char value)
static operator GemStone::GemFire::Cache::Serializable^ (int16_t value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Single >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Single value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Double >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Double value)
static operator GemStone::GemFire::Cache::Serializable^ (array< bool >^value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Byte >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Byte value)
static operator GemStone::GemFire::Cache::Serializable^ (bool value)
static operator Serializable^ (int64_t value)
static void RegisterType (TypeFactoryMethod^ creationMethod)

Protected Member Functions

 CacheableBuiltinKey (gemfire::Serializable *nativeptr)

Properties

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

Constructor & Destructor Documentation

template<typename TNative, typename TManaged, uint32_t TYPEID>
GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::CacheableBuiltinKey (  )  [inline]

Allocates a new instance

template<typename TNative, typename TManaged, uint32_t TYPEID>
GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::CacheableBuiltinKey ( TManaged  value  )  [inline]

Allocates a new instance with the given value.

Parameters:
value the value of the new instance

template<typename TNative, typename TManaged, uint32_t TYPEID>
GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::CacheableBuiltinKey ( gemfire::Serializable *  nativeptr  )  [inline, protected]

Protected constructor to wrap a native object pointer

Parameters:
nativeptr The native object pointer


Member Function Documentation

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

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

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

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

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

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

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual GemStone::GemFire::Cache::IGFSerializable ^ GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::FromData ( GemStone::GemFire::Cache::DataInput^   input  )  [inline, override, virtual]

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

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

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual int32_t GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::GetHashCode (  )  [inline, override, virtual]

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

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

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

Implicit conversion operator from a string to a CacheableKey.

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

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

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

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

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

Implicit conversion operator from a character to a CacheableKey.

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

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

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

Implicit conversion operator from a float to a CacheableKey.

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

Implicit conversion operator from a double to a CacheableKey.

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

Implicit conversion operator from a byte to a CacheableKey.

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

Implicit conversion operator from a boolean to a CacheableKey.

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

Implicit conversion operator from a string array to a Serializable.

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

Implicit conversion operator from a string to a Serializable.

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

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

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

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

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

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

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

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

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

Implicit conversion operator from a character array to a Serializable.

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

Implicit conversion operator from a character to a Serializable.

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

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

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

Implicit conversion operator from a float array to a Serializable.

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

Implicit conversion operator from a float to a Serializable.

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

Implicit conversion operator from a double array to a Serializable.

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

Implicit conversion operator from a double to a Serializable.

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

Implicit conversion operator from an boolean array to a Serializable.

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

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

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

Implicit conversion operator from a byte to a Serializable.

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

Implicit conversion operator from a boolean to a Serializable.

static GemStone::GemFire::Cache::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::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::operator== ( TManaged  other  )  [inline]

Comparison operator against another value.

static void GemStone::GemFire::Cache::Serializable::RegisterType ( TypeFactoryMethod^   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.

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual void GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::ToData ( GemStone::GemFire::Cache::DataOutput^   output  )  [inline, override, virtual]

Serializes this native (C++) object.

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

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

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

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

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


Property Documentation

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

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::Serializable.

template<typename TNative, typename TManaged, uint32_t TYPEID>
virtual uint32_t GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >::ObjectSize [get]

return the size of this object in bytes

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

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

Gets the value.


GemFire C++ Cache .NET API Documentation