Navigation
API > API/Runtime > API/Runtime/Chaos
| Name | TManagedArrayBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/ManagedArray.h |
| Include Path | #include "GeometryCollection/ManagedArray.h" |
Syntax
template<class InElementType>
class TManagedArrayBase : public FManagedArrayBase
Inheritance Hierarchy
- FNoncopyable → FManagedArrayBase → TManagedArrayBase
Derived Classes
TManagedArrayBase derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TManagedArrayBase
(
TManagedArrayBase< ElementType >&& Other |
Move Constructor | GeometryCollection/ManagedArray.h | |
| Constructor (default) Build an empty shared array | GeometryCollection/ManagedArray.h | ||
TManagedArrayBase
(
const TArray< ElementType >& Other |
Constructor (TArray) | GeometryCollection/ManagedArray.h | |
TManagedArrayBase
(
const TManagedArrayBase< ElementType >& Other |
Copy Constructor (default) | GeometryCollection/ManagedArray.h | |
TManagedArrayBase
(
TArray< ElementType >&& Other |
GeometryCollection/ManagedArray.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TManagedArrayBase() |
Virtual Destructor | GeometryCollection/ManagedArray.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | InElementType | GeometryCollection/ManagedArray.h | |
| RangedForConstIteratorType | TArray< InElementType >::RangedForConstIteratorType | GeometryCollection/ManagedArray.h | |
| RangedForIteratorType | TArray< InElementType >::RangedForIteratorType | GeometryCollection/ManagedArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
RangedForConstIteratorType begin () |
GeometryCollection/ManagedArray.h | ||
RangedForIteratorType begin () |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support. | GeometryCollection/ManagedArray.h | |
bool Contains
(
const ElementType& Item |
GeometryCollection/ManagedArray.h | ||
int32 Count
(
const ElementType& Item |
Count the number of entries match `Item_. | GeometryCollection/ManagedArray.h | |
RangedForIteratorType end () |
GeometryCollection/ManagedArray.h | ||
RangedForConstIteratorType end () |
GeometryCollection/ManagedArray.h | ||
void Fill
(
const ElementType& Value |
Fill the array with `Value_. | GeometryCollection/ManagedArray.h | |
int32 Find
(
const ElementType& Item |
Find first index of the element | GeometryCollection/ManagedArray.h | |
const TArray< ElementType > & GetConstArray () |
GeometryCollection/ManagedArray.h | ||
const TArray< ElementType > & GetConstArray () |
Helper function for returning the internal const array | GeometryCollection/ManagedArray.h | |
const ElementType * GetData () |
Helper function for returning a typed pointer to the first array entry. | GeometryCollection/ManagedArray.h | |
ElementType * GetData () |
Helper function for returning a typed pointer to the first array entry. | GeometryCollection/ManagedArray.h | |
uint32 GetTypeHash() |
This hash is using HashCombineFast and should not be serialized! | GeometryCollection/ManagedArray.h | |
bool IsValidIndex
(
int32 Index |
Return true if index is in array range. | GeometryCollection/ManagedArray.h | |
void RangeCheck
(
int32 Index |
Checks if index is in array range. | GeometryCollection/ManagedArray.h |
Overridden from FManagedArrayBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CopyRange
(
const FManagedArrayBase& ConstArray, |
Copy from a predefined Array of matching type | GeometryCollection/ManagedArray.h | |
virtual void ExchangeArrays
(
FManagedArrayBase& Src |
Perform a memory move between the two arrays | GeometryCollection/ManagedArray.h | |
virtual SIZE_T GetAllocatedSize() |
Get allocated memory | GeometryCollection/ManagedArray.h | |
virtual size_t GetTypeSize() |
Helper function returning the size of the inner type. | GeometryCollection/ManagedArray.h | |
virtual void Init
(
const FManagedArrayBase& NewArray |
Init from a predefined Array of matching type | GeometryCollection/ManagedArray.h | |
virtual int32 Max() |
The reserved length of the array. | GeometryCollection/ManagedArray.h | |
virtual int32 Num() |
Returning the size of the array | GeometryCollection/ManagedArray.h | |
virtual void RemoveElements
(
const TArray< int32 >& SortedDeletionList |
Remove elements | GeometryCollection/ManagedArray.h | |
virtual void Serialize
(
Chaos::FChaosArchive& Ar |
Serialization Support | GeometryCollection/ManagedArray.h |
Protected
Overridden from FManagedArrayBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Empty() |
Protected clear to prevent external clearing of the array | GeometryCollection/ManagedArray.h | |
virtual void Reorder
(
const TArray< int32 >& NewOrder |
Reorder elements given a new ordering. Sizes must match | GeometryCollection/ManagedArray.h | |
virtual void Reserve
(
const int32 Size |
Protected Reserve to prevent external reservation of the array | GeometryCollection/ManagedArray.h | |
virtual void Resize
(
const int32 Size |
Protected Resize to prevent external resizing of the array | GeometryCollection/ManagedArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const ElementType & operator[]
(
int Index |
GeometryCollection/ManagedArray.h | ||
ElementType & operator[]
(
int Index |
Returning a reference to the element at index. | GeometryCollection/ManagedArray.h | |
TManagedArrayBase & operator=
(
TManagedArrayBase< ElementType >&& Other |
Assignment operator | GeometryCollection/ManagedArray.h | |
TManagedArrayBase & operator=
(
TArray< ElementType >&& Other |
GeometryCollection/ManagedArray.h |