class Array
MyCpp::Referenced
MyCpp::Object
MyCpp::Array
Derivatives: MyCpp::ExternalArray

An interface for indexable groups of entities.

Methods
virtual unsigned long
getCurrentSize () = 0
Get the current size of the array.
virtual unsigned long
getSizeLimit () = 0
Get the maximum possible size for this array.
virtual T&
element (unsigned long num) = 0
Get an element with a given index.
getCurrentSize

Get the current size of the array.

Returns the number of elements which are actually allocated at the moment of the call.

virtual unsigned long getCurrentSize () = 0
getSizeLimit

Get the maximum possible size for this array.

In case of dynamic arrays, the size limit is usually greater than the current size of the array.

virtual unsigned long getSizeLimit () = 0
element

Get an element with a given index.

If the index is greater or equal to the size limit of the array, then the program is aborted.

If the index is greater or equal to the current size of the array, but less then array's size limit (dynamic array case) then the array should be expanded, so that the index becomes less than the array's current size.

virtual T& element (unsigned long num) = 0
num :  The index of the requested element.