TSortableMapBase

The base type of sortable maps.

Choose your operating system:

Windows

macOS

Linux

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

 

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