Navigation
API > API/Runtime > API/Runtime/Engine
Runtime container for AnimationAttributes, providing a TMap like interface. Used in FStack
| Name | TAttributeContainer |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AttributesContainer.h |
| Include Path | #include "Animation/AttributesContainer.h" |
Syntax
template<class BoneIndexType, typename InAllocator>
struct TAttributeContainer
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint8 * Add
(
const UScriptStruct* InScriptStruct, |
Adds a new attribute type/value entry for the specified InScriptType. | Animation/AttributesContainer.h | |
AttributeType * Add
(
const FAttributeId& InAttributeId, |
Adds a new attribute type/value entry of the specified underlying AttributeType. | Animation/AttributesContainer.h | |
bool ContainsData() |
Returns whether or not any this container contains any entries | Animation/AttributesContainer.h | |
void CopyFrom
(
const TAttributeContainer< OtherBoneIndexType, OtherAllocator >& Other, |
Animation/AttributesContainer.h | ||
void CopyFrom
(
const TAttributeContainer< OtherBoneIndexType, OtherAllocator >& Other, |
Animation/AttributesContainer.h | ||
void CopyFrom
(
const TAttributeContainer< BoneIndexType, InAllocator >& Other |
Copies all contained data from another Container instance using the same memory allocator | Animation/AttributesContainer.h | |
void CopyFrom
(
const TAttributeContainer< BoneIndexType, OtherAllocator >& Other |
Copies all contained data from another Container instance using another memory allocator | Animation/AttributesContainer.h | |
void Empty() |
Cleans out all contained entries and types | Animation/AttributesContainer.h | |
AttributeType * Find
(
const FAttributeId& InAttributeId |
Tries to find a attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
const uint8 * Find
(
const UScriptStruct* InScriptStruct, |
Tries to find a attribute type/value entry for the specified InScriptType. | Animation/AttributesContainer.h | |
uint8 * Find
(
const UScriptStruct* InScriptStruct, |
Tries to find a attribute type/value entry for the specified InScriptType. | Animation/AttributesContainer.h | |
const AttributeType * Find
(
const FAttributeId& InAttributeId |
Tries to find a attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
const AttributeType & FindChecked
(
const FAttributeId& InAttributeId |
Tries to find a attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
AttributeType & FindChecked
(
const FAttributeId& InAttributeId |
Tries to find a attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
uint8 * FindOrAdd
(
const UScriptStruct* InScriptStruct, |
Adds, if not yet existing, a new attribute type/value entry for the specified InScriptType. | Animation/AttributesContainer.h | |
AttributeType * FindOrAdd
(
const FAttributeId& InAttributeId |
Adds, if not yet existing, a new attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
int32 FindTypeIndex
(
const UScriptStruct* InScriptStruct |
Animation/AttributesContainer.h | ||
| Populate out parameter OutAttributeKeyNames for all contained attribute key names | Animation/AttributesContainer.h | ||
const TArray< FAttributeId > & GetKeys
(
int32 TypeIndex |
Animation/AttributesContainer.h | ||
const TArray< int32 > & GetUniqueTypedBoneIndices
(
int32 TypeIndex |
Animation/AttributesContainer.h | ||
const TArray< TWeakObjectPtr< UScriptStruct > > & GetUniqueTypes() |
Animation/AttributesContainer.h | ||
const TArray< TWrappedAttribute< InAllocator > > & GetValues
(
int32 TypeIndex |
Animation/AttributesContainer.h | ||
int32 IndexOfByKey
(
const FAttributeId& InAttributeId |
Tries to find and return the indedx of a attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
int32 IndexOfByKey
(
const UScriptStruct* InScriptStruct, |
Tries to find and return the indedx of a attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
void MoveFrom
(
TAttributeContainer< BoneIndexType, InAllocator >& Other |
Moves all contained data from another Container instance, once moved the other Container instance data is invalid | Animation/AttributesContainer.h | |
int32 Num() |
Animation/AttributesContainer.h | ||
bool Remove
(
const FAttributeId& InAttributeId |
Removes, if existing, an attribute type/value entry of the specified AttributeType. | Animation/AttributesContainer.h | |
bool Remove
(
const UScriptStruct* InScriptStruct, |
Removes, if existing, an attribute type/value entry for the specified InScriptType. | Animation/AttributesContainer.h | |
bool RemoveAll () |
Removes all, if existing, an attribute type/value entries of the specified AttributeType. | Animation/AttributesContainer.h | |
bool RemoveAll
(
const UScriptStruct* InScriptStruct, |
Removes all, if existing, an attribute type/value entries for the specified InScriptType. | Animation/AttributesContainer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 FindOrAddTypeIndex
(
const UScriptStruct* InScriptStruct |
Find or add a new root-level entry for the provided attribute data type, returning the index into the arrays representing the type | Animation/AttributesContainer.h | |
TArray< FAttributeId > & GetKeysInternal
(
int32 TypeIndex |
Animation/AttributesContainer.h | ||
TArray< TWrappedAttribute< InAllocator > > & GetValuesInternal
(
int32 TypeIndex |
Animation/AttributesContainer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TAttributeContainer< BoneIndexType, InAllocator >& Other |
Animation/AttributesContainer.h |