VMware Tanzu GemFire Native .NET Reference  10.1.5
Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID > Class Template Reference

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

Inherits Apache::Geode::Client::IDataSerializablePrimitive.

Public Member Functions

virtual String ^ ToString () override
 Return a string representation of the object. More...
 

Protected Member Functions

 CacheableBuiltinArray ()
 Protected constructor More...
 
 CacheableBuiltinArray (array< TManaged >^ buffer)
 Allocates a new instance copying from the given array. More...
 
 CacheableBuiltinArray (array< TManaged >^ buffer, System::Int32 length)
 Allocates a new instance copying given length from the start of given array. More...
 
 CacheableBuiltinArray (std::shared_ptr< native::Serializable > nptr)
 Protected constructor to wrap a native object pointer More...
 

Properties

int8_t DsCode [get]
 Returns the classId of the instance being serialized. More...
 
TManaged Item [get]
 Returns the value at the given index. More...
 
System::Int32 Length [get]
 Returns the size of this array. More...
 
array< TManaged >^ Value [get]
 Returns a copy of the underlying array. More...
 

Detailed Description

template<typename TNative, typename TNativePtr, typename TManaged, int8_t TYPEID>
class Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >

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

Constructor & Destructor Documentation

◆ CacheableBuiltinArray() [1/4]

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray ( )
inlineprotected

Protected constructor

◆ CacheableBuiltinArray() [2/4]

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray ( std::shared_ptr< native::Serializable >  nptr)
inlineprotected

Protected constructor to wrap a native object pointer

Parameters
nativeptrThe native object pointer

◆ CacheableBuiltinArray() [3/4]

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray ( array< TManaged >^  buffer)
inlineprotected

Allocates a new instance copying from the given array.

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

Parameters
bufferthe array to copy from

◆ CacheableBuiltinArray() [4/4]

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::CacheableBuiltinArray ( array< TManaged >^  buffer,
System::Int32  length 
)
inlineprotected

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
bufferthe array to copy from
lengthlength of array from start to copy

Member Function Documentation

◆ ToString()

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
virtual String ^ Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::ToString ( )
inlineoverridevirtual

Return a string representation of the object.

Implements Apache::Geode::Client::ISerializable.

Property Documentation

◆ DsCode

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
int8_t Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::DsCode
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

◆ Item

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
TManaged Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::Item
get

Returns the value at the given index.

◆ Length

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
System:: Int32 Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::Length
get

Returns the size of this array.

◆ Value

template<typename TNative , typename TNativePtr , typename TManaged , int8_t TYPEID>
array< TManaged>^ Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >::Value
get

Returns a copy of the underlying array.


Apache Geode C++ Cache .NET API Documentation