Array with arbitrary number of elements. More...
#include <dynamic-array.hpp>
Public Member Functions | |
DynamicArray (A &a0, int n=32) | |
Initialize with size n. More... | |
DynamicArray (A &a0, unsigned int n) | |
Initialize with size n. More... | |
DynamicArray (const DynamicArray< T, A > &da) | |
Copy elements from array da. More... | |
~DynamicArray (void) | |
Release memory. More... | |
const DynamicArray< T, A > & | operator= (const DynamicArray< T, A > &da) |
Assign array (copy elements from a) More... | |
T & | operator [] (int i) |
Return element at position i (possibly resize) More... | |
T & | operator [] (unsigned int i) |
Return element at position i (possibly resize) More... | |
const T & | operator [] (int i) const |
Return element at position i. More... | |
const T & | operator [] (unsigned int i) const |
Return element at position i. More... | |
operator T * (void) | |
Cast in to pointer of type T. More... | |
Array with arbitrary number of elements.
Definition at line 48 of file dynamic-array.hpp.
|
inline |
Initialize with size n.
Definition at line 87 of file dynamic-array.hpp.
|
inline |
Initialize with size n.
Definition at line 92 of file dynamic-array.hpp.
|
inline |
Copy elements from array da.
Definition at line 97 of file dynamic-array.hpp.
|
inline |
Release memory.
Definition at line 104 of file dynamic-array.hpp.
|
inline |
Assign array (copy elements from a)
Definition at line 110 of file dynamic-array.hpp.
|
inline |
Return element at position i (possibly resize)
Definition at line 130 of file dynamic-array.hpp.
|
inline |
Return element at position i (possibly resize)
Definition at line 138 of file dynamic-array.hpp.
|
inline |
Return element at position i.
Definition at line 144 of file dynamic-array.hpp.
|
inline |
Return element at position i.
Definition at line 151 of file dynamic-array.hpp.
|
inline |
Cast in to pointer of type T.
Definition at line 157 of file dynamic-array.hpp.