Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys > Struct Template Reference

#include <Set.h>

+ Inheritance diagram for DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >:
+ Collaboration 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 FORCEINLINE KeyInitType GetSetKey (ElementInitType Element)
 
static FORCEINLINE bool Matches (KeyInitType A, KeyInitType B)
 
template<typename ComparableKey >
static FORCEINLINE bool Matches (KeyInitType A, ComparableKey B)
 
static FORCEINLINE uint32 GetKeyHash (KeyInitType Key)
 
template<typename ComparableKey >
static FORCEINLINE 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.

Definition at line 45 of file Set.h.

Member Typedef Documentation

◆ ElementInitType

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

Definition at line 48 of file Set.h.

◆ KeyInitType

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

Definition at line 47 of file Set.h.

Member Function Documentation

◆ GetKeyHash() [1/2]

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

Calculates a hash index for a key.

Definition at line 83 of file Set.h.

◆ GetKeyHash() [2/2]

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

Calculates a hash index for a key.

Definition at line 76 of file Set.h.

◆ GetSetKey()

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

Definition at line 53 of file Set.h.

◆ Matches() [1/2]

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

Definition at line 70 of file Set.h.

◆ Matches() [2/2]

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

Definition at line 61 of file Set.h.


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