GemStone::GemFire::Cache::CacheableObjectArray Class Reference

Inherits GemStone::GemFire::Cache::IGFSerializable.


Detailed Description

A mutable IGFSerializable object array wrapper that can serve as a distributable object for caching. Though this class provides compatibility with java Object[] serialization, it provides the semantics of .NET generic List class.

Public Member Functions

 CacheableObjectArray (Int32 capacity)
 CacheableObjectArray (IEnumerable< IGFSerializable^ >^collection)
 CacheableObjectArray ()
virtual IGFSerializableFromData (DataInput^ input)
virtual void ToData (DataOutput^ output)
String^ ToString ()

Properties

virtual UInt32 ClassId [get]
virtual UInt32 ObjectSize [get]

Constructor & Destructor Documentation

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

Allocates a new empty instance.

GemStone::GemFire::Cache::CacheableObjectArray::CacheableObjectArray ( IEnumerable< IGFSerializable^ >^  collection  )  [inline]

Allocates a new instance copying from the given collection.

Parameters:
collection The collection whose elements are copied to this list.

GemStone::GemFire::Cache::CacheableObjectArray::CacheableObjectArray ( Int32  capacity  )  [inline]

Allocates a new empty instance with given initial size.

Parameters:
capacity The initial capacity of the vector.


Member Function Documentation

virtual IGFSerializable ^ GemStone::GemFire::Cache::CacheableObjectArray::FromData ( DataInput^   input  )  [virtual]

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::CacheableObjectArray::ToData ( DataOutput^   output  )  [virtual]

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::Internal::CacheableBuiltinKey< TNative, TManaged, TYPEID >, GemStone::GemFire::Cache::CacheableDate, GemStone::GemFire::Cache::CacheableFileName, GemStone::GemFire::Cache::CacheableObject, GemStone::GemFire::Cache::CacheableObjectXml, GemStone::GemFire::Cache::CacheableString, GemStone::GemFire::Cache::Properties, GemStone::GemFire::Cache::Serializable, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableFloat, Single, GemFireClassIds::CacheableFloat >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableInt64, Int64, GemFireClassIds::CacheableInt64 >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableByte, Byte, GemFireClassIds::CacheableByte >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableWideChar, Char, GemFireClassIds::CacheableCharacter >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableInt16, Int16, GemFireClassIds::CacheableInt16 >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableDouble, Double, GemFireClassIds::CacheableDouble >, GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableInt32, Int32, GemFireClassIds::CacheableInt32 >, and GemStone::GemFire::Cache::Internal::CacheableBuiltinKey< gemfire::CacheableBoolean, Boolean, GemFireClassIds::CacheableBoolean >.


Property Documentation

virtual UInt32 GemStone::GemFire::Cache::CacheableObjectArray::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

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

virtual UInt32 GemStone::GemFire::Cache::CacheableObjectArray::ObjectSize [get]

return the size of this object in bytes

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


GemFire C++ Cache .NET API Documentation