Navigation
API > API/Runtime > API/Runtime/Core
| Name | TIndirectArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/IndirectArray.h |
| Include Path | #include "Containers/IndirectArray.h" |
Syntax
template<typename T, typename Allocator>
class TIndirectArray
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructors. | Containers/IndirectArray.h | ||
TIndirectArray
(
TIndirectArray&& |
Containers/IndirectArray.h | ||
TIndirectArray
(
const TIndirectArray& Other |
Copy constructor. | Containers/IndirectArray.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TIndirectArray() |
Destructor. | Containers/IndirectArray.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | T | Containers/IndirectArray.h | |
| InternalArrayType | TArray< void *, Allocator > | Containers/IndirectArray.h | |
| TConstIterator | TIndexedContainerIterator< const TIndirectArray, const ElementType, int32 > | Containers/IndirectArray.h | |
| TIterator | TIndexedContainerIterator< TIndirectArray, ElementType, int32 > | Iterators. | Containers/IndirectArray.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Array | InternalArrayType | Containers/IndirectArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Add
(
T* Item |
Adds a new item to the end of the array, possibly reallocating the whole array to fit. | Containers/IndirectArray.h | |
TDereferencingIterator< ElementType, typename InternalArrayType::RangedForIteratorType > begin () |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support. | Containers/IndirectArray.h | |
TDereferencingIterator< const ElementType, typename InternalArrayType::RangedForConstIteratorType > begin () |
Containers/IndirectArray.h | ||
void CountBytes
(
FArchive& Ar |
Count bytes needed to serialize this array. | Containers/IndirectArray.h | |
TConstIterator CreateConstIterator() |
Creates a const iterator for the contents of this array. | Containers/IndirectArray.h | |
TIterator CreateIterator() |
Creates an iterator for the contents of this array. | Containers/IndirectArray.h | |
void Empty
(
int32 Slack |
Empties the array. It calls the destructors on held items. | Containers/IndirectArray.h | |
TDereferencingIterator< ElementType, typename InternalArrayType::RangedForIteratorType > end () |
Containers/IndirectArray.h | ||
TDereferencingIterator< const ElementType, typename InternalArrayType::RangedForConstIteratorType > end () |
Containers/IndirectArray.h | ||
SIZE_T GetAllocatedSize() |
Helper function to return the amount of memory allocated by this container | Containers/IndirectArray.h | |
const T ** GetData () |
Helper function for returning a typed pointer to the first array entry. | Containers/IndirectArray.h | |
T ** GetData () |
Helper function for returning a typed pointer to the first array entry. | Containers/IndirectArray.h | |
void Insert
(
T* Item, |
Inserts a given element into the array at given location. | Containers/IndirectArray.h | |
bool IsEmpty () |
Returns true if the array is empty and contains no elements. | Containers/IndirectArray.h | |
bool IsValidIndex
(
int32 Index |
Tests if index is valid, i.e. greater than zero and less than number of elements in array. | Containers/IndirectArray.h | |
const ElementType & Last
(
int32 IndexFromTheEnd |
Returns n-th last element from the array.Const version. | Containers/IndirectArray.h | |
ElementType & Last
(
int32 IndexFromTheEnd |
Returns n-th last element from the array. | Containers/IndirectArray.h | |
int32 Num() |
Gets number of elements in array. | Containers/IndirectArray.h | |
void RemoveAt
(
int32 Index, |
Removes an element at given location optionally shrinking the array. | Containers/IndirectArray.h | |
void RemoveAt
(
int32 Index, |
Removes elements at given location optionally shrinking the array. | Containers/IndirectArray.h | |
void RemoveAt
(
int32 Index, |
Containers/IndirectArray.h | ||
void RemoveAtSwap
(
int32 Index, |
Containers/IndirectArray.h | ||
void RemoveAtSwap
(
int32 Index, |
Removes an element at given location optionally shrinking the array. | Containers/IndirectArray.h | |
void RemoveAtSwap
(
int32 Index, |
Removes elements at given location optionally shrinking the array. | Containers/IndirectArray.h | |
void Reserve
(
int32 Number |
Reserves memory such that the array can contain at least Number elements. | Containers/IndirectArray.h | |
void Reset
(
int32 NewSize |
Resets the array to the new given size. It calls the destructors on held items. | Containers/IndirectArray.h | |
void Serialize
(
FArchive& Ar, |
Special serialize function passing the owning UObject along as required by FUnytpedBulkData serialization. | Containers/IndirectArray.h | |
void Shrink() |
Shrinks the array's used memory to smallest possible to store elements currently in it. | Containers/IndirectArray.h | |
void Swap
(
int32 FirstIndexToSwap, |
Element-wise array element swap.This version is doing more sanity checks than SwapMemory. | Containers/IndirectArray.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint32 GetTypeSize() |
Helper function returning the size of the inner type. | Containers/IndirectArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T & operator[]
(
int32 Index |
Bracket array access operator. | Containers/IndirectArray.h | |
const T & operator[]
(
int32 Index |
Bracket array access operator.Const version. | Containers/IndirectArray.h | |
TIndirectArray & operator=
(
TIndirectArray&& Other |
Containers/IndirectArray.h | ||
TIndirectArray & operator=
(
const TIndirectArray& Other |
Assignment operators. | Containers/IndirectArray.h |