Warnings
The array memory is not initialized to zero when the size is manually set during construction or when using resize.
Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Detour/DetourAlloc.h |
Include |
#include "Detour/DetourAlloc.h" |
class dtIntArray
While it is possible to pre-allocate a specific array size during construction or by using the resize method, certain methods will automatically resize the array as needed.
The array memory is not initialized to zero when the size is manually set during construction or when using resize.
Name | Description | |
---|---|---|
|
dtIntArray() |
Constructs an instance with an initial array size of zero. |
|
dtIntArray ( |
Constructs an instance initialized to the specified size. |
Name | Description | |
---|---|---|
|
~dtIntArray() |
Name | Description | ||
---|---|---|---|
|
contains ( |
||
|
copy ( |
||
|
int * |
getData() |
|
|
int |
pop() |
Returns the value at the end of the array and reduces the size by one. |
|
push ( |
Push the specified integer onto the end of the array and increases the size by one. |
|
|
resize ( |
Specifies the new size of the integer array. |
|
|
int |
size() |
The current size of the integer array. |
Name | Description | ||
---|---|---|---|
|
const int & |
operator[] ( |
The value at the specified array index. Does not provide overflow protection. |
|
int & |
operator[] ( |
The value at the specified array index. Does not provide overflow protection. |