TSortableMapBase

The base type of sortable maps.

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Map.h

Include

#include "Containers/Map.h"

Syntax

template<typename KeyType, typename ValueType, typename SetAllocator, typename KeyFuncs>
class TSortableMapBase : public TMapBase< KeyType, ValueType, SetAllocator, KeyFuncs >

Remarks

The base type of sortable maps.

Constructors

Name Description

Protected function

TSortableMapBase()

Protected function

TSortableMapBase

(
    TSortableMapBase&&
)

Protected function

TSortableMapBase

(
    const TSortableMapBase&
)

Protected function

TSortableMapBase

(
    TSortableMapBase< KeyType, ValueTyp...
)

Constructor for moving elements from a TMap with a different SetAllocator

Protected function

TSortableMapBase

(
    const TSortableMapBase< KeyType, Va...
)

Constructor for copying elements from a TMap with a different SetAllocator

Functions

Name Description

Public function

void

 

KeySort

(
    const PREDICATE_CLASS& Predicate
)

Sorts the pairs array using each pair's Key as the sort criteria, then rebuilds the map's hash.

Public function

void

 

KeyStableSort

(
    const PREDICATE_CLASS& Predicate
)

Stable sorts the pairs array using each pair's Key as the sort criteria, then rebuilds the map's hash.

Public function

void

 

SortFreeList()

Sort the free element list so that subsequent additions will occur in the lowest available TSet index resulting in tighter packing without moving any existing items.

Public function

void

 

ValueSort

(
    const PREDICATE_CLASS& Predicate
)

Sorts the pairs array using each pair's Value as the sort criteria, then rebuilds the map's hash.

Public function

void

 

ValueStableSort

(
    const PREDICATE_CLASS& Predicate
)

Stable sorts the pairs array using each pair's Value as the sort criteria, then rebuilds the map's hash.

Operators

Name Description

Protected function

TSortableMap...

 

operator=

(
    TSortableMapBase&&
)

Protected function

TSortableMap...

 

operator=

(
    const TSortableMapBase&
)

Protected function

TSortableMap...

 

operator=

(
    TSortableMapBase< KeyType, ValueTyp...
)

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

Protected function

TSortableMap...

 

operator=

(
    const TSortableMapBase< KeyType, Va...
)

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

Typedefs

Name

Description

Super

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel