![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ChunkedArray.h>
Inheritance diagram for TChunkedArray< InElementType, TargetBytesPerChunk, AllocatorType >:Classes | |
| struct | FChunk |
Public Types | |
| using | IntrusiveUnsetOptionalStateType = TChunkedArray |
Static Public Attributes | |
| static constexpr bool | bHasIntrusiveUnsetOptionalState = true |
Protected Types | |
| enum | { NumElementsPerChunk = TargetBytesPerChunk / sizeof(ElementType) } |
| typedef TIndirectArray< FChunk, AllocatorType > | ChunksType |
Protected Attributes | |
| ChunksType | Chunks |
| int32 | NumElements |
An array that uses multiple allocations to avoid allocation failure due to fragmentation.
|
protected |
The chunks of the array's elements.
| using TChunkedArray< InElementType, TargetBytesPerChunk, AllocatorType >::IntrusiveUnsetOptionalStateType = TChunkedArray |
|
inline |
Initialization constructor.
|
inline |
|
inline |
|
default |
|
inlineexplicit |
|
inline |
|
inline |
Adds a new item to the end of the chunked array.
| Item | The item to add |
|
inline |
|
inline |
|
inline |
|
inline |
Constructs a new item to the end of the chunked array.
| Args | The arguments to forward to the constructor of the new item. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns true if the chunked array is empty and contains no elements.
|
inline |
Tests if index is valid, i.e. greater than zero and less than number of elements in array.
| Index | Index to test. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Appends the specified array to this array. Cannot append to self.
| Other | The array to append. |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reserves memory such that the array can contain at least Number elements.
| Number | The number of elements that the array should be able to contain after allocation. |
|
inline |
|
staticconstexpr |
|
protected |
|
protected |
The number of elements in the array.