UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
dtChunkArray< T, TAllocHint > Class Template Reference

A simple dynamic array of integers. More...

#include <DetourAlloc.h>

Public Member Functions

 dtChunkArray ()
 Constructs an instance with an initial array size of zero.
 
 dtChunkArray (int n)
 
 ~dtChunkArray ()
 
void resize (int n)
 
void push (T item)
 
pop ()
 
const T & operator[] (int i) const
 
T & operator[] (int i)
 
int size () const
 The current size of the integer array.
 

Detailed Description

template<class T, dtAllocHint TAllocHint = DT_ALLOC_TEMP>
class dtChunkArray< T, TAllocHint >

A simple dynamic array of integers.

Constructor & Destructor Documentation

◆ dtChunkArray() [1/2]

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
dtChunkArray< T, TAllocHint >::dtChunkArray ( )
inline

Constructs an instance with an initial array size of zero.

◆ dtChunkArray() [2/2]

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
dtChunkArray< T, TAllocHint >::dtChunkArray ( int  n)
inline

Constructs an instance initialized to the specified size.

Parameters
[in]nThe initial size of the integer array.

◆ ~dtChunkArray()

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
dtChunkArray< T, TAllocHint >::~dtChunkArray ( )
inline

Member Function Documentation

◆ operator[]() [1/2]

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
T & dtChunkArray< T, TAllocHint >::operator[] ( int  i)
inline

The value at the specified array index.

Warning
Does not provide overflow protection.
Parameters
[in]iThe index of the value.

◆ operator[]() [2/2]

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
const T & dtChunkArray< T, TAllocHint >::operator[] ( int  i) const
inline

The value at the specified array index.

Warning
Does not provide overflow protection.
Parameters
[in]iThe index of the value.

◆ pop()

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
T dtChunkArray< T, TAllocHint >::pop ( )
inline

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

Returns
The value at the end of the array.

◆ push()

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
void dtChunkArray< T, TAllocHint >::push ( item)
inline

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

Parameters
[in]itemThe new value.

◆ resize()

template<class T , dtAllocHint TAllocHint>
void dtChunkArray< T, TAllocHint >::resize ( int  n)

Specifies the new size of the integer array.

Parameters
[in]nThe new size of the integer array.

◆ size()

template<class T , dtAllocHint TAllocHint = DT_ALLOC_TEMP>
int dtChunkArray< T, TAllocHint >::size ( ) const
inline

The current size of the integer array.


The documentation for this class was generated from the following file: