Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/ManagedArrayAccessor.h |
| Include | #include "GeometryCollection/ManagedArrayAccessor.h" |
Syntax
template<typename T>
struct TManagedArrayAccessor
Remarks
This class wraps a managed array this provides a convenient API for optional attributes in a collection facade
Constructors
| Type | Name | Description | |
|---|---|---|---|
TManagedArrayAccessor
(
FManagedArrayCollection& InCollection, |
|||
TManagedArrayAccessor
(
const FManagedArrayCollection& InCollection, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TManagedArray< T > & | Add
(
ManageArrayAccessor::EPersistencePolicy PersistencePolicy, |
Add the attribute if it does not exists yet | |
| void | AddAndFill
(
const T& Value, |
Add and fill the attribute if it does not exist yet | |
| int32 | AddElements
(
int32 NumElements |
||
| void | Copy
(
const TManagedArrayAccessor< T >& FromAttribute |
Copy from another attribute ( create if necessary ) | |
| void | Fill
(
const T& Value |
Fill the attribute with a specific value | |
| const TManagedArray< T > * | Find () |
Find the attribute for read only | |
| const TManagedArray< T > & | Get () |
Get the attribute for read only | |
| FManagedArrayCollection * | |||
| const FManagedArrayCollection & | |||
| FName | GetGroup () |
||
| FName | |||
| FName | GetName () |
||
| bool | IsConst () |
||
| bool | IsPersistent () |
||
| bool | IsValid () |
||
| bool | IsValidIndex
(
int32 Index |
||
| TManagedArray< T > & | Modify () |
Get the attribute for modification | |
| void | ModifyAt
(
int32 Index, |
Per index modification | |
| int32 | Num () |
||
| void | Remove () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| const T & | operator[]
(
int32 Index |
Array style accessor |