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