API Guides > ConceptRT 3.x
DataArray< ElementType, Size > Class Template Reference

Invocable, Visitable and Serializable Array More...

Detailed Description

template<class ElementType, Int32 Size>
class ConceptRT::DataArray< ElementType, Size >

Invocable, Visitable and Serializable Array

Template Parameters
ElementTypeArray items type.
SizeArray size.
+ Inheritance diagram for DataArray< ElementType, Size >:

Public Member Methods

void Invoke (const DynamicInvocationRequest &request, DynamicInvocationResult &result)
 Invokes the object fields and methods. More...
 
void Accept (IContainerVisitor &visitor)
 Accepts IContainerVisitor to access the object published fields. More...
 
void ReadFrom (IDataStore &dataStore, IMessageCollector *messages=NULL)
 Reads from. More...
 
void WriteTo (IDataStore &dataStore) const
 Writes to. More...
 
- Public Member Methods inherited from SafeArray< ElementType, Size >
ElementType & operator[] (Int32 index)
 Array indexer operator. More...
 
const ElementType & operator[] (Int32 index) const
 Array indexer operator. More...
 
Int32 GetSize () const
 Gets the array size. More...
 
- Public Member Methods inherited from BaseSafeArray< ElementType >
bool IndexValid (Int32 index) const
 Query if index is valid. More...
 
void Exchange (Int32 index1, Int32 index2)
 Exchanges two items More...
 

Methods Documentation

void Accept ( IContainerVisitor visitor)
virtual

Accepts IContainerVisitor to access the object published fields.

Parameters
visitor[in,out] The visitor.

Implements IVisitableContainer.

void Invoke ( const DynamicInvocationRequest request,
DynamicInvocationResult result 
)
virtual

Invokes the object fields and methods.

Parameters
requestThe request.
result[in,out] The result.

Dynamic Invocation on IInvocable objects enables us to have remote access on published fields and methods.

Implements IInvocable.

void ReadFrom ( IDataStore dataStore,
IMessageCollector messages = NULL 
)
virtual

Reads from.

Parameters
dataStore[in,out] The dataStore.
messages[in,out] (optional) The messageCollector to collect warning or error messages. Default = NULL.

Implements ISerializable.

void WriteTo ( IDataStore dataStore) const
virtual

Writes to.

Parameters
dataStore[in,out] The dataStore.

Implements ISerializable.