Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/ChunkedArray.h |
Include |
#include "Containers/ChunkedArray.h" |
template<typename InElementType, uint32 TargetBytesPerChunk>
class TChunkedArray
An array that uses multiple allocations to avoid allocation failure due to fragmentation.
Name | Description | ||
---|---|---|---|
|
Chunks |
||
|
NumElements |
The number of elements in the array. |
Name | Description | |
---|---|---|
|
TChunkedArray ( |
Initialization constructor. |
|
TChunkedArray ( |
|
|
TChunkedArray ( |
Name | Description | ||
---|---|---|---|
|
Add ( |
||
|
AddElement ( |
Adds a new item to the end of the chunked array. |
|
|
FConstIterTy... |
begin() |
|
|
begin() |
||
|
CopyToLinearArray ( |
||
|
Empty ( |
||
|
FConstIterTy... |
end() |
|
|
end() |
||
|
GetAllocatedSize() |
||
|
IsValidIndex ( |
Tests if index is valid, i.e. greater than zero and less than number of elements in array. |
|
|
Num() |
||
|
Reserve ( |
Reserves memory such that the array can contain at least Number elements. |
|
|
Shrink() |
Name | Description | ||
---|---|---|---|
|
ElementType ... |
operator() ( |
Accessors. |
|
const Elemen... |
operator() ( |
|
|
ElementType ... |
operator[] ( |
|
|
const Elemen... |
operator[] ( |
|
|
TChunkedArra... |
operator+= ( |
Appends the specified array to this array. Cannot append to self. |
|
TChunkedArra... |
operator+= ( |
|
|
TChunkedArra... |
operator= ( |
|
|
TChunkedArra... |
operator= ( |
Name |
Description |
|
---|---|---|
|
FChunk |
A chunk of the array's elements. |
Name |
Description |
---|---|
ChunksType |
The chunks of the array's elements. |
ElementType |
|
FConstIterType |
|
FIterType |
Name |
Description |
---|---|
NumElementsPerChunk |