![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AttributeArrayContainer.h>
Public Member Functions | |
| TArrayAttribute (ArrayType &InArray, int32 InIndex) | |
| template<typename T = AttributeType, typename TEnableIf< std::is_same_v< T, const T >, int >::Type = 0> | |
| TArrayAttribute (TArrayAttribute< std::remove_cv_t< T > > InValue) | |
| AttributeType * | GetData () const |
| bool | IsValidIndex (int32 ArrayAttributeIndex) const |
| bool | IsEmpty () const |
| int32 | Num () const |
| AttributeType & | operator[] (int32 ArrayAttributeIndex) const |
| AttributeType & | Last (int32 IndexFromTheEnd=0) const |
| void | SetNum (int32 Num) |
| void | SetNumUninitialized (int32 Num) |
| void | Reserve (int32 Num) |
| int32 | Add (const AttributeType &Value) |
| int32 | AddUnique (const AttributeType &Value) |
| void | InsertDefaulted (int32 StartIndex, int32 Count) |
| void | Insert (const AttributeType &Value, int32 StartIndex) |
| void | RemoveAt (int32 StartIndex, int32 Count) |
| template<typename Predicate > | |
| int32 | RemoveAll (Predicate Pred) |
| int32 | Remove (const AttributeType &Value) |
| int32 | Find (const AttributeType &Value) const |
| template<typename Predicate > | |
| AttributeType * | FindByPredicate (Predicate Pred) const |
| template<typename Predicate > | |
| int32 | IndexOfByPredicate (Predicate Pred) const |
| bool | Contains (const AttributeType &Value) const |
| template<typename Predicate > | |
| bool | ContainsByPredicate (Predicate Pred) const |
| void | Sort () |
| template<typename Predicate > | |
| void | SortByPredicate (Predicate Pred) |
| void | StableSort () |
| template<typename Predicate > | |
| void | StableSortByPredicate (Predicate Pred) |
| TArrayView< AttributeType > | ToArrayView () |
| operator TArrayView< AttributeType > () | |
| AttributeType * | begin () const |
| AttributeType * | end () const |
Friends | |
| template<typename T > | |
| class | TArrayAttribute |
Proxy object which fields access to an unbounded array attribute container.
|
inlineexplicit |
|
inline |
Construct a TArrayAttribute<const T> from a TArrayAttribute<T>.
|
inline |
Adds the given value to the end of the array attribute, reserving extra space if necessary.
|
inline |
Adds the given value to the end of the array attribute, reserving extra space if necessary.
|
inline |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support.
|
inline |
Determines whether the array attribute contains a particular value
|
inline |
Checks if this array contains element for which the predicate is true.
| Predicate | to use |
|
inline |
|
inline |
Finds the given value in the array attribute and returns its index
|
inline |
Finds an element which matches a predicate functor.
| Pred | The functor to apply to each element. |
|
inline |
Helper function for returning a typed pointer to the first array attribute entry.
|
inline |
Finds an item by predicate.
| Pred | The predicate to match. |
|
inline |
Inserts an element into the given index in the array attribute
|
inline |
Inserts a number of default-constructed elements in the array attribute
|
inline |
Returns true if the array attribute is empty and contains no elements.
|
inline |
Tests if index is valid, i.e. than or equal to zero, and less than the number of elements in the array attribute.
| Index | Index to test. |
|
inline |
Returns n-th last element from the array attribute.
| IndexFromTheEnd | (Optional) Index from the end of array. Default is 0. |
|
inline |
Returns number of elements in the array attribute.
|
inline |
Implicitly coerce an array attribute to a TArrayView.
|
inline |
Array bracket operator. Returns reference to array attribute element at given index.
|
inline |
|
inline |
Removes all elements which match the predicate
|
inline |
Removes a number of elements from the array attribute
|
inline |
Reserves the number of elements in the array attribute.
|
inline |
Sets the number of elements in the array attribute.
|
inline |
Sets the number of elements in the array attribute without initializing any new elements. It is the responsibility of the caller to do so after this function returns.
|
inline |
Sorts the array assuming < operator is defined for the item type.
|
inline |
Sorts the array using the given predicate.
|
inline |
Stable sorts the array assuming < operator is defined for the item type.
|
inline |
Sorts the array using the given predicate.
|
inline |
Return a TArrayView representing this array attribute.