Navigation
API > API/Runtime > API/Runtime/MeshDescription
Proxy object which fields access to an unbounded array attribute container.
| Name | TArrayAttribute |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshDescription/Public/AttributeArrayContainer.h |
| Include Path | #include "AttributeArrayContainer.h" |
Syntax
template<typename AttributeType>
class TArrayAttribute
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArrayAttribute
(
TArrayAttribute< std::remove_cv_t< T > > InValue |
Construct a TArrayAttribute |
AttributeArrayContainer.h | |
TArrayAttribute
(
ArrayType& InArray, |
AttributeArrayContainer.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ArrayType | TCopyQualifiersFromTo_T< AttributeType, TAttributeArrayContainer< std::remove_cv_t< AttributeType > > > | AttributeArrayContainer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Array | ArrayType * | AttributeArrayContainer.h | ||
| Index | int32 | AttributeArrayContainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Add
(
const AttributeType& Value |
Adds the given value to the end of the array attribute, reserving extra space if necessary. | AttributeArrayContainer.h | |
int32 AddUnique
(
const AttributeType& Value |
Adds the given value to the end of the array attribute, reserving extra space if necessary. | AttributeArrayContainer.h | |
AttributeType * begin() |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support. | AttributeArrayContainer.h | |
bool Contains
(
const AttributeType& Value |
Determines whether the array attribute contains a particular value | AttributeArrayContainer.h | |
bool ContainsByPredicate
(
Predicate Pred |
Checks if this array contains element for which the predicate is true. | AttributeArrayContainer.h | |
AttributeType * end() |
AttributeArrayContainer.h | ||
int32 Find
(
const AttributeType& Value |
Finds the given value in the array attribute and returns its index | AttributeArrayContainer.h | |
AttributeType * FindByPredicate
(
Predicate Pred |
Finds an element which matches a predicate functor. | AttributeArrayContainer.h | |
AttributeType * GetData() |
Helper function for returning a typed pointer to the first array attribute entry. | AttributeArrayContainer.h | |
int32 IndexOfByPredicate
(
Predicate Pred |
Finds an item by predicate. | AttributeArrayContainer.h | |
void Insert
(
const AttributeType& Value, |
Inserts an element into the given index in the array attribute | AttributeArrayContainer.h | |
void InsertDefaulted
(
int32 StartIndex, |
Inserts a number of default-constructed elements in the array attribute | AttributeArrayContainer.h | |
bool IsEmpty() |
Returns true if the array attribute is empty and contains no elements. | AttributeArrayContainer.h | |
bool IsValidIndex
(
int32 ArrayAttributeIndex |
Tests if index is valid, i.e. than or equal to zero, and less than the number of elements in the array attribute. | AttributeArrayContainer.h | |
AttributeType & Last
(
int32 IndexFromTheEnd |
Returns n-th last element from the array attribute. | AttributeArrayContainer.h | |
int32 Num() |
Returns number of elements in the array attribute. | AttributeArrayContainer.h | |
int32 Remove
(
const AttributeType& Value |
AttributeArrayContainer.h | ||
int32 RemoveAll
(
Predicate Pred |
Removes all elements which match the predicate | AttributeArrayContainer.h | |
void RemoveAt
(
int32 StartIndex, |
Removes a number of elements from the array attribute | AttributeArrayContainer.h | |
void Reserve
(
int32 Num |
Reserves the number of elements in the array attribute. | AttributeArrayContainer.h | |
void SetNum
(
int32 Num |
Sets the number of elements in the array attribute. | AttributeArrayContainer.h | |
void SetNumUninitialized
(
int32 Num |
Sets the number of elements in the array attribute without initializing any new elements. | AttributeArrayContainer.h | |
void Sort() |
Sorts the array assuming < operator is defined for the item type. | AttributeArrayContainer.h | |
void SortByPredicate
(
Predicate Pred |
Sorts the array using the given predicate. | AttributeArrayContainer.h | |
void StableSort() |
Stable sorts the array assuming < operator is defined for the item type. | AttributeArrayContainer.h | |
void StableSortByPredicate
(
Predicate Pred |
Sorts the array using the given predicate. | AttributeArrayContainer.h | |
TArrayView< AttributeType > ToArrayView() |
Return a TArrayView representing this array attribute. | AttributeArrayContainer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AttributeType & operator[]
(
int32 ArrayAttributeIndex |
Array bracket operator. Returns reference to array attribute element at given index. | AttributeArrayContainer.h |