Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Detour
References
Module | Navmesh |
Header | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourAlloc.h |
Include | #include "Detour/DetourAlloc.h" |
Syntax
template<class T, dtAllocHint TAllocHint>
class dtChunkArray
Remarks
A simple dynamic array of integers.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
dtChunkArray () |
Constructs an instance with an initial array size of zero. | |
![]() |
dtChunkArray
(
int n |
Constructs an instance initialized to the specified size. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
T | pop () |
Returns the value at the end of the array and reduces the size by one. |
![]() |
void | push
(
T item |
Push the specified integer onto the end of the array and increases the size by one. |
![]() |
void | resize
(
int n |
Specifies the new size of the integer array. |
![]() ![]() |
int | size () |
The current size of the integer array. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const T & | operator[]
(
int i |
The value at the specified array index. Does not provide overflow protection. |
![]() |
T & | operator[]
(
int i |
The value at the specified array index. Does not provide overflow protection. |