Navigation
API > API/Runtime > API/Runtime/Engine
Container of lazily-sorted name/value pairs. Used to perform efficient merge operations. Assumes that InElementType has an accessible member: FNameName.
| Name | TNamedValueArray |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Animation/NamedValueArray.h |
| Include Path | #include "Animation/NamedValueArray.h" |
Syntax
template<typename InAllocatorType, typename InElementType>
struct TNamedValueArray
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FElementSortPredicate | Sort by FName - Note: this is not stable across serialization. |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AllocatorType | InAllocatorType | Animation/NamedValueArray.h | |
| ElementType | InElementType | Animation/NamedValueArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
ArgTypes&&... Args |
Add a named element. | Animation/NamedValueArray.h | |
void AppendNames
(
TConstArrayView< FName > InNameArray |
Add an array of named elements. | Animation/NamedValueArray.h | |
void AppendNames
(
std::initializer_list< const FName > InInputArgs |
Add an array of named elements. | Animation/NamedValueArray.h | |
void Empty() |
Reset the internal allocations | Animation/NamedValueArray.h | |
void ForEachElement
(
PredicateType InPredicate |
Iterate over each element calling InPredicate for each. Predicate: (const ElementType&) -> void | Animation/NamedValueArray.h | |
bool HasElement
(
FName InName |
Check whether an element is present for the supplied name Note that this performs a binary search per-call. | Animation/NamedValueArray.h | |
int32 Max() |
Animation/NamedValueArray.h | ||
int32 Num() |
Animation/NamedValueArray.h | ||
void Reserve
(
int32 InNumElements |
Reserves memory for InNumElements | Animation/NamedValueArray.h | |
void Shrink() |
Compacts the memory for the elements based on what was actually used | Animation/NamedValueArray.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CheckDuplicates() |
Checks whether the 'no duplicates' invariant is correct. | Animation/NamedValueArray.h | |
void CheckSorted() |
Checks whether the sorting invariant is correct. | Animation/NamedValueArray.h | |
| Finds the element with the specified name (const) | Animation/NamedValueArray.h | ||
| Finds the element with the specified name | Animation/NamedValueArray.h | ||
int32 IndexOf
(
FName InName |
Finds index of the element with the specified name, disregarding enabled state | Animation/NamedValueArray.h | |
void SortElementsIfRequired() |
Sorts the elements if they are not yet sorted. | Animation/NamedValueArray.h |