|
| | CStructArray (const CStructArray &Source) |
| | Copies the specified array element-by-element.
|
| |
| T & | add () |
| | Creates a new object of type T with the default constructor, and adds this object to the array.
|
| |
|
void | clear () |
| | Erases all items of this array.
|
| |
|
int | getItemCount () const |
| | Returns the number of allocated items.
|
| |
| CStructArray & | operator= (const CStructArray &Source) |
| | Copies the specified array element-by-element.
|
| |
| T & | operator[] (const int Index) |
| | Returns writable reference to the specified element.
|
| |
| const T & | operator[] (const int Index) const |
| | Returns const reference to the specified element.
|
| |
| void | setItemCount (const int NewCount) |
| | Changes the number of allocated items.
|
| |
template<class T>
class avir::CStructArray< T >
Array of structured objects.
Implements allocation of a linear array of objects of class T (which are initialized), addressable via operator[]. Each object is created via the operator new. New object insertions are quick since implementation uses prior space allocation (capacity), thus not requiring frequent memory block reallocations.
- Template Parameters
-