Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs > Class Template Reference

#include <Map.h>

+ Inheritance diagram for TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >:
+ Collaboration diagram for TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >:

Classes

class  FKeyComparisonClass
 
class  FValueComparisonClass
 

Public Member Functions

template<typename PREDICATE_CLASS >
FORCEINLINE void KeySort (const PREDICATE_CLASS &Predicate)
 
template<typename PREDICATE_CLASS >
FORCEINLINE void ValueSort (const PREDICATE_CLASS &Predicate)
 
- Public Member Functions inherited from TMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >
bool OrderIndependentCompareEqual (const TMapBase &Other) const
 
FORCEINLINE void Empty (int32 ExpectedNumElements=0)
 
FORCEINLINE void Reset ()
 
FORCEINLINE void Shrink ()
 
FORCEINLINE void Compact ()
 
FORCEINLINE void CompactStable ()
 
FORCEINLINE void Reserve (int32 Number)
 
FORCEINLINE int32 Num () const
 
template<typename Allocator >
int32 GetKeys (TArray< KeyType, Allocator > &OutKeys) const
 
FORCEINLINE uint32 GetAllocatedSize () const
 
FORCEINLINE ValueType & Add (const KeyType &InKey, const ValueType &InValue)
 
FORCEINLINE ValueType & Add (const KeyType &InKey, ValueType &&InValue)
 
FORCEINLINE ValueType & Add (KeyType &&InKey, const ValueType &InValue)
 
FORCEINLINE ValueType & Add (KeyType &&InKey, ValueType &&InValue)
 
FORCEINLINE ValueType & Add (const KeyType &InKey)
 
FORCEINLINE ValueType & Add (KeyType &&InKey)
 
template<typename InitKeyType , typename InitValueType >
ValueType & Emplace (InitKeyType &&InKey, InitValueType &&InValue)
 
template<typename InitKeyType >
ValueType & Emplace (InitKeyType &&InKey)
 
FORCEINLINE int32 Remove (KeyConstPointerType InKey)
 
const KeyType * FindKey (ValueInitType Value) const
 
FORCEINLINE ValueType * Find (KeyConstPointerType Key)
 
FORCEINLINE const ValueType * Find (KeyConstPointerType Key) const
 
FORCEINLINE ValueType & FindOrAdd (const KeyType &Key)
 
FORCEINLINE ValueType & FindOrAdd (KeyType &&Key)
 
FORCEINLINE const ValueType & FindChecked (KeyConstPointerType Key) const
 
FORCEINLINE ValueType & FindChecked (KeyConstPointerType Key)
 
FORCEINLINE ValueType FindRef (KeyConstPointerType Key) const
 
FORCEINLINE bool Contains (KeyConstPointerType Key) const
 
template<typename Allocator >
void GenerateKeyArray (TArray< KeyType, Allocator > &OutArray) const
 
template<typename Allocator >
void GenerateValueArray (TArray< ValueType, Allocator > &OutArray) const
 
FORCEINLINE TIterator CreateIterator ()
 
FORCEINLINE TConstIterator CreateConstIterator () const
 
FORCEINLINE TKeyIterator CreateKeyIterator (KeyInitType InKey)
 
FORCEINLINE TConstKeyIterator CreateConstKeyIterator (KeyInitType InKey) const
 

Protected Types

typedef TMapBase< KeyType, ValueType, SetAllocator, KeyFuncs > Super
 
- Protected Types inherited from TMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >
typedef TSet< ElementType, KeyFuncs, SetAllocator > ElementSetType
 

Protected Member Functions

 TSortableMapBase ()=default
 
 TSortableMapBase (TSortableMapBase &&)=default
 
 TSortableMapBase (const TSortableMapBase &)=default
 
TSortableMapBaseoperator= (TSortableMapBase &&)=default
 
TSortableMapBaseoperator= (const TSortableMapBase &)=default
 
template<typename OtherSetAllocator >
 TSortableMapBase (TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
 TSortableMapBase (const TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 
template<typename OtherSetAllocator >
TSortableMapBaseoperator= (TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
TSortableMapBaseoperator= (const TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 
- Protected Member Functions inherited from TMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >
 TMapBase ()=default
 
 TMapBase (TMapBase &&)=default
 
 TMapBase (const TMapBase &)=default
 
TMapBaseoperator= (TMapBase &&)=default
 
TMapBaseoperator= (const TMapBase &)=default
 
template<typename OtherSetAllocator >
 TMapBase (TMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
 TMapBase (const TMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 
template<typename OtherSetAllocator >
TMapBaseoperator= (TMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
TMapBaseoperator= (const TMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 

Friends

struct TContainerTraits< TSortableMapBase >
 

Additional Inherited Members

- Public Types inherited from TMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >
typedef TTypeTraits< KeyType >::ConstPointerType KeyConstPointerType
 
typedef TTypeTraits< KeyType >::ConstInitType KeyInitType
 
typedef TTypeTraits< ValueType >::ConstInitType ValueInitType
 
typedef TPair< KeyType, ValueType > ElementType
 
using TRangedForIterator = TBaseIterator<false, true>
 
using TRangedForConstIterator = TBaseIterator<true, true>
 
- Protected Attributes inherited from TMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >
ElementSetType Pairs
 

Detailed Description

template<typename KeyType, typename ValueType, typename SetAllocator, typename KeyFuncs>
class TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >

The base type of sortable maps.

Definition at line 736 of file Map.h.

Member Typedef Documentation

◆ Super

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
typedef TMapBase<KeyType, ValueType, SetAllocator, KeyFuncs> TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::Super
protected

Definition at line 741 of file Map.h.

Constructor & Destructor Documentation

◆ TSortableMapBase() [1/5]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::TSortableMapBase ( )
protecteddefault

◆ TSortableMapBase() [2/5]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::TSortableMapBase ( TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs > && )
protecteddefault

◆ TSortableMapBase() [3/5]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::TSortableMapBase ( const TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs > & )
protecteddefault

◆ TSortableMapBase() [4/5]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
template<typename OtherSetAllocator >
TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::TSortableMapBase ( TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > && Other)
inlineprotected

Constructor for moving elements from a TMap with a different SetAllocator

Definition at line 763 of file Map.h.

◆ TSortableMapBase() [5/5]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
template<typename OtherSetAllocator >
TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::TSortableMapBase ( const TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > & Other)
inlineprotected

Constructor for copying elements from a TMap with a different SetAllocator

Definition at line 770 of file Map.h.

Member Function Documentation

◆ KeySort()

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
template<typename PREDICATE_CLASS >
FORCEINLINE void TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::KeySort ( const PREDICATE_CLASS & Predicate)
inline

Sorts the pairs array using each pair's Key as the sort criteria, then rebuilds the map's hash. Invoked using "MyMapVar.KeySort( PREDICATE_CLASS() );"

Definition at line 797 of file Map.h.

◆ operator=() [1/4]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
TSortableMapBase & TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::operator= ( const TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs > & )
protecteddefault

◆ operator=() [2/4]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
template<typename OtherSetAllocator >
TSortableMapBase & TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::operator= ( const TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > & Other)
inlineprotected

Assignment operator for copying elements from a TMap with a different SetAllocator

Definition at line 785 of file Map.h.

◆ operator=() [3/4]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
TSortableMapBase & TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::operator= ( TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs > && )
protecteddefault

◆ operator=() [4/4]

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
template<typename OtherSetAllocator >
TSortableMapBase & TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::operator= ( TSortableMapBase< KeyType, ValueType, OtherSetAllocator, KeyFuncs > && Other)
inlineprotected

Assignment operator for moving elements from a TMap with a different SetAllocator

Definition at line 777 of file Map.h.

◆ ValueSort()

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
template<typename PREDICATE_CLASS >
FORCEINLINE void TSortableMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >::ValueSort ( const PREDICATE_CLASS & Predicate)
inline

Sorts the pairs array using each pair's Value as the sort criteria, then rebuilds the map's hash. Invoked using "MyMapVar.ValueSort( PREDICATE_CLASS() );"

Definition at line 807 of file Map.h.

Friends And Related Symbol Documentation

◆ TContainerTraits< TSortableMapBase >

template<typename KeyType , typename ValueType , typename SetAllocator , typename KeyFuncs >
friend struct TContainerTraits< TSortableMapBase >
friend

Definition at line 692 of file Map.h.


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