#include <DArray.h>
|
int | base () |
| Returns the base of the array (zero in most cases)
|
|
T & | operator[] (int index) |
| Array access operator.
|
|
void | resize (int newSize) |
| Resizes the array.
|
|
|
int | size |
| Size of the array.
|
|
T * | items |
| Pointer to array items.
|
|
template<class T = void*, int base_ = 0, int resizeValue = 0>
class RPG::DArray< T, base_, resizeValue >
Array class
- Parameters
-
◆ operator[]()
template<class T = void*, int base_ = 0, int resizeValue = 0>
T & RPG::DArray< T, base_, resizeValue >::operator[] |
( |
int | index | ) |
|
|
inline |
Array access operator.
- Note
- This operator will throw an error if you try to access negative indexes. However, if you use an index which is higher than the current maximum, the array is resized.
◆ resize()
template<class T = void*, int base_ = 0, int resizeValue = 0>
void RPG::DArray< T, base_, resizeValue >::resize |
( |
int | newSize | ) |
|
|
inline |
Resizes the array.
New elements will be initialized with zero.
- Parameters
-
newSize | The new number of elements in the array |
The documentation for this class was generated from the following file: