Navigation
API > API/Runtime > API/Runtime/Navmesh
Warnings * The array memory is not initialized to zero when the size is manually set during construction or when using resize.
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 | rcIntArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/RecastAlloc.h |
| Include Path | #include "Recast/RecastAlloc.h" |
Syntax
class rcIntArray
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
rcIntArray () |
Constructs an instance with an initial array size of zero. | Recast/RecastAlloc.h | |
rcIntArray
(
const rcIntArray& |
Recast/RecastAlloc.h | ||
rcIntArray
(
int n |
Constructs an instance initialized to the specified size. | Recast/RecastAlloc.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~rcIntArray() |
Recast/RecastAlloc.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| m_cap | int | Recast/RecastAlloc.h | ||
| m_data | int * | Recast/RecastAlloc.h | ||
| m_size | int | Recast/RecastAlloc.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool contains
(
int n |
@UE BEGIN: added contains() | Recast/RecastAlloc.h | |
int pop() |
Returns the value at the end of the array and reduces the size by one. | Recast/RecastAlloc.h | |
void push
(
int item |
Push the specified integer onto the end of the array and increases the size by one. | Recast/RecastAlloc.h | |
void resize
(
int n |
Specifies the new size of the integer array. | Recast/RecastAlloc.h | |
int size() |
The current size of the integer array. | Recast/RecastAlloc.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const int & operator[]
(
int i |
The value at the specified array index. Does not provide overflow protection. | Recast/RecastAlloc.h | |
int & operator[]
(
int i |
The value at the specified array index. Does not provide overflow protection. | Recast/RecastAlloc.h | |
rcIntArray & operator=
(
const rcIntArray& |
Recast/RecastAlloc.h |