An interface for indexable groups of entities.
| virtual unsigned long |
Get the current size of the array. | |||
| virtual unsigned long |
Get the maximum possible size for this array. | |||
| virtual T& |
Get an element with a given index. |
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
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
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. |