Atoms Crowd
7.0.0
|
A simple dynamic array of integers. More...
#include <DetourAlloc.h>
Public Member Functions | |
dtChunkArray () | |
Constructs an instance with an initial array size of zero. | |
dtChunkArray (int n) | |
void | resize (int n) |
void | push (T item) |
T | pop () |
const T & | operator[] (int i) const |
T & | operator[] (int i) |
int | size () const |
The current size of the integer array. | |
A simple dynamic array of integers.
|
inline |
Constructs an instance initialized to the specified size.
[in] | n | The initial size of the integer array. |
|
inline |
The value at the specified array index.
[in] | i | The index of the value. |
|
inline |
The value at the specified array index.
[in] | i | The index of the value. |
|
inline |
Returns the value at the end of the array and reduces the size by one.
|
inline |
Push the specified integer onto the end of the array and increases the size by one.
[in] | item | The new value. |
void AtomsUtils::dtChunkArray< T >::resize | ( | int | n | ) |
Specifies the new size of the integer array.
[in] | n | The new size of the integer array. |