Module |
|
Header |
/Engine/Source/Editor/SceneOutliner/Public/SortHelper.h |
Include |
#include "SortHelper.h" |
template<typename PrimaryKeyType, typename SecondaryKeyType>
struct FSortHelper
Templated helper to alleviate performance problems with sorting based on complex predicates. Example Usage: FSortHelper<FString>().Primary([](const [ITreeItem](API\Editor\SceneOutliner\ITreeItem)& Item){ return Item->GetString(); }).SortItems(Array);
Or: FSortHelper<FString, FString>() .Primary(FGetPrimaryStringVisitor()) .Secondary(FGetSecondaryStringVisitor()) .SortItems(Array);
Name | Description | |
---|---|---|
|
FSortHelper() |
Name | Description | ||
---|---|---|---|
|
FSortHelper ... |
Primary ( |
Sort primarily by the specified function and mode. |
|
FSortHelper ... |
Primary ( |
Sort primarily using the specified 'getter' visitor and mode |
|
FSortHelper ... |
Secondary ( |
Sort secondarily by the specified function and mode. |
|
FSortHelper ... |
Secondary ( |
Sort secondarily using the specified 'getter' visitor and mode |
|
Sort ( |
Sort the specified array using the current sort settings |
Name |
Description |
---|---|
FPrimaryFunction |
|
FSecondaryFunction |