dtChunkArray

A simple dynamic array of integers.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourAlloc.h

Include

#include "Detour/DetourAlloc.h"

Syntax

template<class T>
class dtChunkArray

Remarks

A simple dynamic array of integers.

Constructors

Name Description

Public function

dtChunkArray()

Constructs an instance with an initial array size of zero.

Public function

dtChunkArray

(
    int n
)

Constructs an instance initialized to the specified size.

Destructors

Name Description

Public function

~dtChunkArray()

Functions

Name Description

Public function

T

 

pop()

Returns the value at the end of the array and reduces the size by one.

Public function

void

 

push

(
    T item
)

Push the specified integer onto the end of the array and increases the size by one.

Public function

void

 

resize

(
    int n
)

Specifies the new size of the integer array.

Public function Const

int

 

size()

The current size of the integer array.

Operators

Name Description

Public function Const

const T &

 

operator[]

(
    int i
)

The value at the specified array index.

Does not provide overflow protection.

Public function

T &

 

operator[]

(
    int i
)

The value at the specified array index.

Does not provide overflow protection.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss