![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NamedValueArray.h>
Inheritance diagram for UE::Anim::TNamedValueArray< InAllocatorType, InElementType >:Classes | |
| struct | FElementSortPredicate |
Public Types | |
| typedef InAllocatorType | AllocatorType |
| typedef InElementType | ElementType |
Public Member Functions | |
| template<typename... ArgTypes> | |
| void | Add (ArgTypes &&... Args) |
| void | AppendNames (TConstArrayView< FName > InNameArray) |
| void | AppendNames (std::initializer_list< const FName > InInputArgs) |
| void | Empty () |
| void | Reserve (int32 InNumElements) |
| bool | HasElement (FName InName) const |
| template<typename PredicateType > | |
| void | ForEachElement (PredicateType InPredicate) const |
| int32 | Num () const |
| int32 | Max () const |
| void | Shrink () |
Protected Member Functions | |
| void | SortElementsIfRequired () const |
| void | CheckSorted () const |
| void | CheckDuplicates () const |
| int32 | IndexOf (FName InName) const |
| const ElementType * | Find (FName InName) const |
| ElementType * | Find (FName InName) |
Protected Attributes | |
| TArray< ElementType, AllocatorType > | Elements |
| bool | bSorted = false |
Friends | |
| struct | FNamedValueArrayUtils |
Container of lazily-sorted name/value pairs. Used to perform efficient merge operations. Assumes that InElementType has an accessible member: FName Name.
| typedef InAllocatorType UE::Anim::TNamedValueArray< InAllocatorType, InElementType >::AllocatorType |
| typedef InElementType UE::Anim::TNamedValueArray< InAllocatorType, InElementType >::ElementType |
|
inline |
Add a named element. Note that this should only really be used when building a fresh value array, as using this during runtime can introduce duplicate values. Asserts in debug builds if duplicate values are present
|
inline |
Add an array of named elements. Note that this should only really be used when building a fresh array, as using this during runtime can introduce duplicate values. Asserts in debug builds if duplicate values are present
|
inline |
Add an array of named elements. Note that this should only really be used when building a fresh array, as using this during runtime can introduce duplicate values. Asserts in debug builds if duplicate values are present
|
inlineprotected |
|
inlineprotected |
|
inline |
Reset the internal allocations
|
inlineprotected |
Finds the element with the specified name
|
inlineprotected |
Finds the element with the specified name (const)
|
inline |
Iterate over each element calling InPredicate for each. Predicate: (const ElementType&) -> void
|
inline |
Check whether an element is present for the supplied name Note that this performs a binary search per-call.
| InName | the name of the element to check |
|
inlineprotected |
Finds index of the element with the specified name, disregarding enabled state
|
inline |
|
inline |
|
inline |
Reserves memory for InNumElements
|
inline |
Compacts the memory for the elements based on what was actually used
|
inlineprotected |
|
friend |
|
mutableprotected |
|
mutableprotected |