UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Interchange::TMapAttributeHelper< KeyType, ValueType > Class Template Reference

#include <InterchangeBaseNodeUtilities.h>

Public Member Functions

void Initialize (const TSharedRef< FAttributeStorage, ESPMode::ThreadSafe > &InAttributes, const FString &BaseKeyName)
 
 TMapAttributeHelper ()=default
 
 TMapAttributeHelper (const TMapAttributeHelper &)=default
 
 TMapAttributeHelper (TMapAttributeHelper &&)=default
 
TMapAttributeHelperoperator= (const TMapAttributeHelper &)=default
 
TMapAttributeHelperoperator= (TMapAttributeHelper &&)=default
 
 ~TMapAttributeHelper ()
 
bool SetKeyValue (const KeyType &InKey, const ValueType &InValue)
 
bool GetValue (const KeyType &InKey, ValueType &OutValue) const
 
bool RemoveKey (const KeyType &InKey)
 
bool RemoveKeyAndGetValue (const KeyType &InKey, ValueType &OutValue)
 
bool SetKeyValueByHash (uint32 Hash, const KeyType &InKey, const ValueType &InValue)
 
bool GetValueByHash (uint32 Hash, const KeyType &InKey, ValueType &OutValue) const
 
bool RemoveKeyByHash (uint32 Hash, const KeyType &InKey)
 
bool RemoveKeyAndGetValueByHash (uint32 Hash, const KeyType &InKey, ValueType &OutValue)
 
void Reserve (int32 Number)
 
void Empty (int32 NumOfExpectedElements=0)
 
int32 GetCount () const
 
TMapAttributeHelperoperator= (const TMap< KeyType, ValueType > &InMap)
 
TMap< KeyType, ValueType > ToMap () const
 
void RebuildCache ()
 

Detailed Description

template<typename KeyType, typename ValueType>
class UE::Interchange::TMapAttributeHelper< KeyType, ValueType >

Helper class to manage a TMap where the key and value type can be any type support by the FAttributeStorage

Constructor & Destructor Documentation

◆ TMapAttributeHelper() [1/3]

template<typename KeyType , typename ValueType >
UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::TMapAttributeHelper ( )
default

◆ TMapAttributeHelper() [2/3]

template<typename KeyType , typename ValueType >
UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::TMapAttributeHelper ( const TMapAttributeHelper< KeyType, ValueType > &  )
default

◆ TMapAttributeHelper() [3/3]

template<typename KeyType , typename ValueType >
UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::TMapAttributeHelper ( TMapAttributeHelper< KeyType, ValueType > &&  )
default

◆ ~TMapAttributeHelper()

template<typename KeyType , typename ValueType >
UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::~TMapAttributeHelper ( )
inline

Member Function Documentation

◆ Empty()

template<typename KeyType , typename ValueType >
void UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::Empty ( int32  NumOfExpectedElements = 0)
inline

◆ GetCount()

template<typename KeyType , typename ValueType >
int32 UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::GetCount ( ) const
inline

◆ GetValue()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::GetValue ( const KeyType &  InKey,
ValueType &  OutValue 
) const
inline

◆ GetValueByHash()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::GetValueByHash ( uint32  Hash,
const KeyType &  InKey,
ValueType &  OutValue 
) const
inline

◆ Initialize()

template<typename KeyType , typename ValueType >
void UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::Initialize ( const TSharedRef< FAttributeStorage, ESPMode::ThreadSafe > &  InAttributes,
const FString &  BaseKeyName 
)
inline

◆ operator=() [1/3]

template<typename KeyType , typename ValueType >
TMapAttributeHelper & UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::operator= ( const TMap< KeyType, ValueType > &  InMap)
inline

◆ operator=() [2/3]

template<typename KeyType , typename ValueType >
TMapAttributeHelper & UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::operator= ( const TMapAttributeHelper< KeyType, ValueType > &  )
default

◆ operator=() [3/3]

template<typename KeyType , typename ValueType >
TMapAttributeHelper & UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::operator= ( TMapAttributeHelper< KeyType, ValueType > &&  )
default

◆ RebuildCache()

template<typename KeyType , typename ValueType >
void UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::RebuildCache ( )
inline

◆ RemoveKey()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::RemoveKey ( const KeyType &  InKey)
inline

◆ RemoveKeyAndGetValue()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::RemoveKeyAndGetValue ( const KeyType &  InKey,
ValueType &  OutValue 
)
inline

◆ RemoveKeyAndGetValueByHash()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::RemoveKeyAndGetValueByHash ( uint32  Hash,
const KeyType &  InKey,
ValueType &  OutValue 
)
inline

◆ RemoveKeyByHash()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::RemoveKeyByHash ( uint32  Hash,
const KeyType &  InKey 
)
inline

◆ Reserve()

template<typename KeyType , typename ValueType >
void UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::Reserve ( int32  Number)
inline

◆ SetKeyValue()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::SetKeyValue ( const KeyType &  InKey,
const ValueType &  InValue 
)
inline

◆ SetKeyValueByHash()

template<typename KeyType , typename ValueType >
bool UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::SetKeyValueByHash ( uint32  Hash,
const KeyType &  InKey,
const ValueType &  InValue 
)
inline

◆ ToMap()

template<typename KeyType , typename ValueType >
TMap< KeyType, ValueType > UE::Interchange::TMapAttributeHelper< KeyType, ValueType >::ToMap ( ) const
inline

The documentation for this class was generated from the following file: