#include <brainrat/object/array.h>
template<typename T>
class carto::Array< T >
Definition at line 22 of file array.h.
◆ Array()
◆ ~Array()
◆ getArrayItem()
template<typename T>
| virtual Object carto::Array< T >::getArrayItem |
( |
int |
index | ) |
const |
|
inlinevirtual |
◆ getIterator()
◆ insertArrayItem()
template<typename T>
| virtual void carto::Array< T >::insertArrayItem |
( |
int |
i, |
|
|
Object |
o |
|
) |
| |
|
inlinevirtual |
inserts an element into the array.
All elements after this one may be moved, so iterators pointing after it may become invalid
Definition at line 72 of file array.h.
◆ objectIterator()
returns an object implementing the IteratorIntrerface
Definition at line 50 of file array.h.
◆ removeArrayItem()
removes an element from the array.
All elements after the one removed may be moved, so iterators pointing after it may become invalid
Definition at line 69 of file array.h.
◆ reserveArray()
like the STL std::vector::reserve(), memory is reserved but no element is stored
Definition at line 62 of file array.h.
◆ resizeArray()
resize the array.
This may need to copy all existing elements, so all iterators may become invalid after this operation
Definition at line 66 of file array.h.
◆ setArrayItem()
template<typename T>
| virtual void carto::Array< T >::setArrayItem |
( |
int |
index, |
|
|
Object |
o |
|
) |
| |
|
inlinevirtual |
◆ size()
The documentation for this class was generated from the following file: