Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Animation
Inheritance Hierarchy
- TNamedValueArray
- FBulkCurveFlags
- FBulkCurves
- FCurveFilter
- TBaseBlendedCurve
- FBlendedCurve
- FBlendedHeapCurve
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Animation/NamedValueArray.h |
Include | #include "Animation/NamedValueArray.h" |
Syntax
template<typename InAllocatorType, typename InElementType>
struct TNamedValueArray
Remarks
Container of lazily-sorted name/value pairs. Used to perform efficient merge operations. Assumes that InElementType has an accessible member: FNameName.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bSorted | Whether the elements are sorted. |
![]() |
TArray< ElementType, AllocatorType > | Elements | Named elements, sorted by name. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Add
(
ArgTypes&&... Args |
Add a named element. |
![]() |
void | AppendNames
(
TConstArrayView< FName > InNameArray |
Add an array of named elements. |
![]() |
void | AppendNames
(
std::initializer_list< const FName > InInputArgs |
Add an array of named elements. |
![]() ![]() |
void | Checks whether the 'no duplicates' invariant is correct. | |
![]() ![]() |
void | CheckSorted () |
Checks whether the sorting invariant is correct. |
![]() |
void | Empty () |
Reset the internal allocations |
![]() ![]() |
const ElementType * | Finds the element with the specified name (const) | |
![]() |
ElementType * | Finds the element with the specified name | |
![]() ![]() |
void | ForEachElement
(
const PredicateType& InPredicate |
Iterate over each element calling InPredicate for each. Predicate: (const ElementType&) -> void |
![]() ![]() |
bool | HasElement
(
FName InName |
Check whether an element is present for the supplied name Note that this performs a binary search per-call. |
![]() ![]() |
int32 | Finds index of the element with the specified name, disregarding enabled state | |
![]() ![]() |
int32 | Num () |
|
![]() |
void | Reserve
(
int32 InNumElements |
Reserves memory for InNumElements |
![]() ![]() |
void | Sorts the elements if they are not yet sorted. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FElementSortPredicate | Sort by FName - Note: this is not stable across serialization. |
Typedefs
Name | Description |
---|---|
AllocatorType | |
ElementType |