UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TWeakObjectPtrMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys > Struct Template Reference

#include <WeakObjectPtrTemplates.h>

+ Inheritance diagram for TWeakObjectPtrMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >:

Public Types

typedef TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::KeyInitType KeyInitType
 
- Public Types inherited from TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >
typedef TTypeTraits< KeyType >::ConstPointerType KeyInitType
 
typedef const TPairInitializer< typename TTypeTraits< KeyType >::ConstInitType, typename TTypeTraits< ValueType >::ConstInitType > & ElementInitType
 
- Public Types inherited from BaseKeyFuncs< TPair< KeyType, ValueType >, KeyType, bInAllowDuplicateKeys >
enum  
 
typedef KeyType KeyType
 
typedef TCallTraits< KeyType >::ParamType KeyInitType
 
typedef TCallTraits< TPair< KeyType, ValueType > >::ParamType ElementInitType
 

Static Public Member Functions

static FORCEINLINE bool Matches (KeyInitType A, KeyInitType B)
 
static FORCEINLINE uint32 GetKeyHash (KeyInitType Key)
 
- Static Public Member Functions inherited from TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >
static UE_FORCEINLINE_HINT KeyInitType GetSetKey (ElementInitType Element)
 
static UE_FORCEINLINE_HINT bool Matches (KeyInitType A, KeyInitType B)
 
template<typename ComparableKey >
static UE_FORCEINLINE_HINT bool Matches (KeyInitType A, ComparableKey B)
 
static UE_FORCEINLINE_HINT uint32 GetKeyHash (KeyInitType Key)
 
template<typename ComparableKey >
static UE_FORCEINLINE_HINT uint32 GetKeyHash (ComparableKey Key)
 

Detailed Description

template<typename KeyType, typename ValueType, bool bInAllowDuplicateKeys = false>
struct TWeakObjectPtrMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >

MapKeyFuncs for TWeakObjectPtrs which allow the key to become stale without invalidating the map.

Member Typedef Documentation

◆ KeyInitType

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys = false>
typedef TDefaultMapKeyFuncs<KeyType,ValueType,bInAllowDuplicateKeys>::KeyInitType TWeakObjectPtrMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::KeyInitType

Member Function Documentation

◆ GetKeyHash()

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys = false>
static FORCEINLINE uint32 TWeakObjectPtrMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::GetKeyHash ( KeyInitType  Key)
inlinestatic

◆ Matches()

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys = false>
static FORCEINLINE bool TWeakObjectPtrMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::Matches ( KeyInitType  A,
KeyInitType  B 
)
inlinestatic

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