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