API Guides > ConceptRT 3.x
DataListDynamicFixed< ElementType > Class Template Reference

Invocable, Visitable and Serializable List whose size is fixed at the construction time. More...

Detailed Description

template<class ElementType>
class ConceptRT::DataListDynamicFixed< ElementType >

Invocable, Visitable and Serializable List whose size is fixed at the construction time.

Template Parameters
ElementTypeArray items type.
Warning
Non-Deterministic: Creation is non-deterministic. Browsing the list is deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
+ Inheritance diagram for DataListDynamicFixed< ElementType >:

Public Member Methods

 DataListDynamicFixed (Int32 size)
 Constructor. More...
 
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 InvocableListDynamicFixed< ElementType >
 InvocableListDynamicFixed (Int32 size)
 Constructor. More...
 
- Public Member Methods inherited from BaseInvocableListDynamicFixed< ElementType, is_base_of< IInvocable, ElementType >::value >
 BaseInvocableListDynamicFixed (Int32 size)
 Constructor. More...
 
- Public Member Methods inherited from SafeListDynamicFixed< ElementType >
 SafeListDynamicFixed (Int32 size)
 Constructor. More...
 
 SafeListDynamicFixed (const SafeListDynamicFixed< ElementType > &right)
 Constructor copy. More...
 
 ~SafeListDynamicFixed ()
 Destructor. More...
 
Int32 GetSize () const
 Gets the list maximum size. More...
 
bool GetFull () const
 Query if the list is full. More...
 
- Public Member Methods inherited from BaseSafeList< ElementType >
void AddRange (const BaseSafeList< ElementType > &list)
 Adds a range of item. More...
 
bool GetEmpty () const
 Query if the list is empty. More...
 
Int32 GetCount () const
 Gets the number of items contained in the list. More...
 
void Clear ()
 Clears all items. More...
 
void InsertNew (Int32 position)
 Inserts a new item at a given position. More...
 
Int32 AddNewItem ()
 Adds new item. More...
 
void RemoveAt (Int32 index)
 Removes an item at index. More...
 
void Exchange (Int32 index1, Int32 index2)
 Exchanges two items. More...
 
void Move (Int32 index1, Int32 index2)
 Moves an item. More...
 
bool IndexValid (Int32 index) const
 Query if index is valid. More...
 
Int32 IndexOf (const ElementType &value) const
 Index of the given item. More...
 
Int32 Remove (const ElementType &value)
 Removes the given item. More...
 
ElementType & operator[] (Int32 index)
 Array indexer operator. More...
 
const ElementType & operator[] (Int32 index) const
 Array indexer operator. More...
 
Int32 Add (const ElementType &value)
 Adds item. More...
 
void Insert (Int32 index, const ElementType &value)
 Inserts an item. More...
 

Constructor & Destructor Documentation

Constructor.

Parameters
sizeThe size.
Warning
Non-Deterministic: The dynamic size list is created on the heap. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

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.