GemStone::GemFire::Cache::CacheableIdentityHashMap Class Reference

Inherits GemStone::GemFire::Cache::CacheableHashMap.


Detailed Description

A mutable ICacheableKey to IGFSerializable hash map that can serve as a distributable object for caching. This class extends .NET generic Dictionary class. This class is meant as a means to interoperate with java server side IdentityHashMap class objects but is intentionally not intended to provide java.util.IdentityHashMap semantics.

Public Member Functions

 CacheableIdentityHashMap (int32_t capacity)
 CacheableIdentityHashMap (System::Collections::Generic::IDictionary< ICacheableKey^ , IGFSerializable^ >^dictionary)
 CacheableIdentityHashMap ()
virtual IGFSerializableFromData (DataInput^ input)
virtual void ToData (DataOutput^ output)
String^ ToString ()

Static Public Member Functions

static
CacheableIdentityHashMap
Create (int32_t capacity)
static
CacheableIdentityHashMap
Create (System::Collections::Generic::IDictionary< ICacheableKey^ , IGFSerializable^ >^dictionary)
static
CacheableIdentityHashMap
Create ()
static IGFSerializableCreateDeserializable ()

Properties

virtual uint32_t ClassId [get]
virtual uint32_t ObjectSize [get]

Constructor & Destructor Documentation

GemStone::GemFire::Cache::CacheableIdentityHashMap::CacheableIdentityHashMap (  )  [inline]

Allocates a new empty instance.

GemStone::GemFire::Cache::CacheableIdentityHashMap::CacheableIdentityHashMap ( System::Collections::Generic::IDictionary< ICacheableKey^ , IGFSerializable^ >^  dictionary  )  [inline]

Allocates a new instance copying from the given dictionary.

Parameters:
dictionary The dictionary whose elements are copied to this HashMap.

GemStone::GemFire::Cache::CacheableIdentityHashMap::CacheableIdentityHashMap ( int32_t  capacity  )  [inline]

Allocates a new empty instance with given initial size.

Parameters:
capacity The initial capacity of the HashMap.


Member Function Documentation

static CacheableIdentityHashMap ^ GemStone::GemFire::Cache::CacheableIdentityHashMap::Create ( int32_t  capacity  )  [inline, static]

Static function to create a new instance with given initial size.

Reimplemented from GemStone::GemFire::Cache::CacheableHashMap.

static CacheableIdentityHashMap ^ GemStone::GemFire::Cache::CacheableIdentityHashMap::Create ( System::Collections::Generic::IDictionary< ICacheableKey^ , IGFSerializable^ >^  dictionary  )  [inline, static]

Static function to create a new instance copying from the given dictionary.

Reimplemented from GemStone::GemFire::Cache::CacheableHashMap.

static CacheableIdentityHashMap ^ GemStone::GemFire::Cache::CacheableIdentityHashMap::Create (  )  [inline, static]

Static function to create a new empty instance.

Reimplemented from GemStone::GemFire::Cache::CacheableHashMap.

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

Factory function to register this class.

Reimplemented from GemStone::GemFire::Cache::CacheableHashMap.

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

Deserialize this object, typical implementation should return the 'this' pointer.

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

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

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

Serializes this object.

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

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

String ^ GemStone::GemFire::Cache::IGFSerializable::ToString (  )  [inherited]

Return a string representation of the object.

Implemented in GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, GemStone::GemFire::Cache::CacheableDate, GemStone::GemFire::Cache::CacheableFileName, GemStone::GemFire::Cache::CacheableObject, GemStone::GemFire::Cache::CacheableObjectXml, GemStone::GemFire::Cache::CacheableStringArray, GemStone::GemFire::Cache::CacheableString, GemStone::GemFire::Cache::Properties, GemStone::GemFire::Cache::Serializable, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableFloat, Single, GemFireClassIds::CacheableFloat >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableByte, Byte, GemFireClassIds::CacheableByte >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableWideChar, Char, GemFireClassIds::CacheableCharacter >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableDouble, Double, GemFireClassIds::CacheableDouble >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableInt64, int64_t, GemFireClassIds::CacheableInt64 >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableBoolean, bool, GemFireClassIds::CacheableBoolean >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableInt16, int16_t, GemFireClassIds::CacheableInt16 >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableInt32, int32_t, GemFireClassIds::CacheableInt32 >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableBytes, gemfire::CacheableBytesPtr, Byte, GemFireClassIds::CacheableBytes >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableInt32Array, gemfire::CacheableInt32ArrayPtr, int32_t, GemFireClassIds::CacheableInt32Array >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableInt64Array, gemfire::CacheableInt64ArrayPtr, int64_t, GemFireClassIds::CacheableInt64Array >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CharArray, gemfire::CharArrayPtr, Char, GemFireClassIds::CharArray >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableFloatArray, gemfire::CacheableFloatArrayPtr, Single, GemFireClassIds::CacheableFloatArray >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableInt16Array, gemfire::CacheableInt16ArrayPtr, int16_t, GemFireClassIds::CacheableInt16Array >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableDoubleArray, gemfire::CacheableDoubleArrayPtr, Double, GemFireClassIds::CacheableDoubleArray >, and GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::BooleanArray, gemfire::BooleanArrayPtr, bool, GemFireClassIds::BooleanArray >.


Property Documentation

virtual uint32_t GemStone::GemFire::Cache::CacheableIdentityHashMap::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::CacheableHashMap.

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

return the size of this object in bytes

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


GemFire C++ Cache .NET API Documentation