GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID > Class Template Reference

Inherits GemStone::GemFire::Cache::Generic::Serializable.


Detailed Description

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
class GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >

An immutable template array wrapper that can serve as a distributable object for caching.

Public Member Functions

virtual IGFSerializableFromData (DataInput^ input) override
virtual void ToData (DataOutput^ output) override
virtual String^ ToString () override

Static Public Member Functions

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 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)
 CacheableBuiltinArray (array< TManaged >^buffer, int32_t length)
 CacheableBuiltinArray (array< TManaged >^buffer)
 CacheableBuiltinArray (gemfire::Serializable *nptr)
 CacheableBuiltinArray ()
void InternalCleanup ()
void SetPtr (gemfire::Serializable *nativeptr)

Properties

virtual uint32_t ClassId [get]
TManaged Item [get]
int32_t Length [get]
virtual uint32_t ObjectSize [get]
array< TManaged >^ Value [get]

Constructor & Destructor Documentation

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray (  )  [inline, protected]

Protected constructor

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray ( gemfire::Serializable *  nptr  )  [inline, protected]

Protected constructor to wrap a native object pointer

Parameters:
nativeptr The native object pointer

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray ( array< TManaged >^  buffer  )  [inline, protected]

Allocates a new instance copying from the given array.

This method performs no argument checking which is the responsibility of the caller.

Parameters:
buffer the array to copy from

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray ( array< TManaged >^  buffer,
int32_t  length 
) [inline, protected]

Allocates a new instance copying given length from the start of given array.

This method performs no argument checking which is the responsibility of the caller.

Parameters:
buffer the array to copy from
length length of array from start to copy


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.

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
virtual IGFSerializable ^ GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::FromData ( 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::Generic::Serializable.

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::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::Serializable::operator Serializable^ ( int64_t  value  )  [static, inherited]

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

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.

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
virtual void GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::ToData ( 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::Generic::Serializable.

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

Return a string representation of the object. It simply returns the string representation of the underlying native object by calling its toString() function.

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


Property Documentation

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
virtual uint32_t GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, 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::Generic::Serializable.

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
TManaged GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::Item [get]

Returns the value at the given index.

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
int32_t GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::Length [get]

Returns the size of this array.

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
virtual uint32_t GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::ObjectSize [get]

return the size of this object in bytes

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

template<typename TNative, typename TNativePtr, typename TManaged, uint32_t TYPEID>
array< TManaged>^ GemStone::GemFire::Cache::Generic::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::Value [get]

Returns a copy of the underlying array.


GemFire C++ Cache .NET API Documentation