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

#include <SetUtilities.h>

+ Inheritance diagram for DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >:

Public Types

typedef TTypeTraits< ElementType >::ConstPointerType KeyInitType
 
typedef TCallTraits< ElementType >::ParamType ElementInitType
 
- Public Types inherited from BaseKeyFuncs< ElementType, ElementType, bInAllowDuplicateKeys >
enum  
 
typedef ElementType KeyType
 
typedef TCallTraits< ElementType >::ParamType KeyInitType
 
typedef TCallTraits< ElementType >::ParamType ElementInitType
 

Static Public Member Functions

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 ElementType, bool bInAllowDuplicateKeys>
struct DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >

A default implementation of the KeyFuncs used by TSet which uses the element as a key.

Member Typedef Documentation

◆ ElementInitType

template<typename ElementType , bool bInAllowDuplicateKeys>
typedef TCallTraits<ElementType>::ParamType DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::ElementInitType

◆ KeyInitType

template<typename ElementType , bool bInAllowDuplicateKeys>
typedef TTypeTraits<ElementType>::ConstPointerType DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::KeyInitType

Member Function Documentation

◆ GetKeyHash() [1/2]

template<typename ElementType , bool bInAllowDuplicateKeys>
template<typename ComparableKey >
static UE_FORCEINLINE_HINT uint32 DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::GetKeyHash ( ComparableKey  Key)
inlinestatic

Calculates a hash index for a key.

◆ GetKeyHash() [2/2]

template<typename ElementType , bool bInAllowDuplicateKeys>
static UE_FORCEINLINE_HINT uint32 DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::GetKeyHash ( KeyInitType  Key)
inlinestatic

Calculates a hash index for a key.

◆ GetSetKey()

template<typename ElementType , bool bInAllowDuplicateKeys>
static UE_FORCEINLINE_HINT KeyInitType DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::GetSetKey ( ElementInitType  Element)
inlinestatic
Returns
The key used to index the given element.

◆ Matches() [1/2]

template<typename ElementType , bool bInAllowDuplicateKeys>
template<typename ComparableKey >
static UE_FORCEINLINE_HINT bool DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::Matches ( KeyInitType  A,
ComparableKey  B 
)
inlinestatic
Returns
True if the keys match.

◆ Matches() [2/2]

template<typename ElementType , bool bInAllowDuplicateKeys>
static UE_FORCEINLINE_HINT bool DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::Matches ( KeyInitType  A,
KeyInitType  B 
)
inlinestatic
Returns
True if the keys match.

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