|
Planeshift
|
A simple dynamic array of integers. More...
#include <RecastAlloc.h>
Public Member Functions | |
| const int & | operator[] (int i) const |
| The value at the specified array index. More... | |
| int & | operator[] (int i) |
| The value at the specified array index. More... | |
| int | pop () |
| Returns the value at the end of the array and reduces the size by one. More... | |
| void | push (int item) |
| Push the specified integer onto the end of the array and increases the size by one. More... | |
| rcIntArray () | |
| Constructs an instance with an initial array size of zero. More... | |
| rcIntArray (int n) | |
| Constructs an instance initialized to the specified size. More... | |
| void | resize (int n) |
| Specifies the new size of the integer array. More... | |
| int | size () const |
| The current size of the integer array. More... | |
| ~rcIntArray () | |
A simple dynamic array of integers.
Definition at line 61 of file RecastAlloc.h.
|
inline |
Constructs an instance with an initial array size of zero.
Definition at line 70 of file RecastAlloc.h.
|
inline |
Constructs an instance initialized to the specified size.
| [in] | n | The initial size of the integer array. |
Definition at line 74 of file RecastAlloc.h.
|
inline |
Definition at line 75 of file RecastAlloc.h.
The value at the specified array index.
| [in] | i | The index of the value. |
Definition at line 92 of file RecastAlloc.h.
The value at the specified array index.
| [in] | i | The index of the value. |
Definition at line 97 of file RecastAlloc.h.
|
inline |
Returns the value at the end of the array and reduces the size by one.
Definition at line 87 of file RecastAlloc.h.
|
inline |
Push the specified integer onto the end of the array and increases the size by one.
| [in] | item | The new value. |
Definition at line 83 of file RecastAlloc.h.
| void rcIntArray::resize | ( | int | n | ) |
Specifies the new size of the integer array.
| [in] | n | The new size of the integer array. |
|
inline |
The current size of the integer array.
Definition at line 100 of file RecastAlloc.h.