Ark Server API (ASE) - 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 TCallTraits< ElementType >::ParamType KeyInitType
 
typedef TCallTraits< ElementType >::ParamType ElementInitType
 
- Public Types inherited from BaseKeyFuncs< ElementType, InKeyType, bInAllowDuplicateKeys >
enum  { bAllowDuplicateKeys = bInAllowDuplicateKeys }
 
typedef InKeyType KeyType
 
typedef TCallTraits< InKeyType >::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)
 
static FORCEINLINE uint32 GetKeyHash (KeyInitType Key)
 

Detailed Description

template<typename ElementType, bool bInAllowDuplicateKeys = false>
struct DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >

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

Definition at line 37 of file Set.h.

Member Typedef Documentation

◆ ElementInitType

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

Definition at line 40 of file Set.h.

◆ KeyInitType

template<typename ElementType , bool bInAllowDuplicateKeys = false>
typedef TCallTraits<ElementType>::ParamType DefaultKeyFuncs< ElementType, bInAllowDuplicateKeys >::KeyInitType

Definition at line 39 of file Set.h.

Member Function Documentation

◆ GetKeyHash()

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

Calculates a hash index for a key.

Definition at line 59 of file Set.h.

◆ GetSetKey()

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

Definition at line 45 of file Set.h.

◆ Matches()

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

Definition at line 53 of file Set.h.


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