dtIntArray

A simple dynamic array of integers.

Windows
MacOS
Linux

Warnings

  • The array memory is not initialized to zero when the size is manually set during construction or when using resize.

References

Module

Navmesh

Header

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

Include

#include "Detour/DetourAlloc.h"

Syntax

class dtIntArray

Remarks

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.

Constructors

Name Description

Public function

dtIntArray()

Constructs an instance with an initial array size of zero.

Public function

dtIntArray

(
    int n
)

Constructs an instance initialized to the specified size.

Destructors

Name Description

Public function

~dtIntArray()

Functions

Name Description

Public function Const

bool

 

contains

(
    int v
)

Public function

void

 

copy

(
    const dtIntArray& src
)

Public function Const

int *

 

getData()

Public function

int

 

pop()

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

Public function

void

 

push

(
    int 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 int &

 

operator[]

(
    int i
)

The value at the specified array index.

Does not provide overflow protection.

Public function

int &

 

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