![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TypedElementSorter.h>
Inheritance diagram for UE::Editor::DataStorage::FColumnSorterInterface:Public Types | |
| enum class | ESortType : uint8 { FixedSize64 , FixedSizeOnly , ComparativeSort , HybridSort , Max } |
Public Member Functions | |
| virtual | ~FColumnSorterInterface ()=default |
| virtual ESortType | GetSortType () const =0 |
| virtual FText | GetShortName () const =0 |
| virtual int32 | Compare (const ICoreProvider &Storage, RowHandle Left, RowHandle Right) const =0 |
| virtual FPrefixInfo | CalculatePrefix (const ICoreProvider &Storage, RowHandle Row, uint32 ByteIndex) const =0 |
Interface to provide sorting of rows by column.
|
strong |
|
virtualdefault |
|
pure virtual |
The numeric prefix for the column. For numeric values this typically the number itself. For strings it's typically the next 8 characters or 4 wide characters starting at the provided byte index. The utility function can CreateSortPrefix be used to help create a prefix from one or more variables. Note that using a prefix is limited to only one value that has a variable length (e.g. strings) and has to be the last value to be sorted.
Implemented in UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::FixedSize64, ColumnType >, UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::FixedSizeOnly, ColumnType >, UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::ComparativeSort, ColumnType >, and UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::HybridSort, ColumnType >.
|
pure virtual |
Compare the content of the left row to the right row and return a negative number if left is smaller than right, zero if left and right are equal and a positive number if right is larger than left.
Implemented in UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::FixedSize64, ColumnType >, UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::FixedSizeOnly, ColumnType >, UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::ComparativeSort, ColumnType >, and UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::HybridSort, ColumnType >.
If set, this can be used.
|
pure virtual |
Returns the type of sorting required for this column.
Implemented in UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::FixedSize64, ColumnType >, UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::FixedSizeOnly, ColumnType >, UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::ComparativeSort, ColumnType >, and UE::Editor::DataStorage::TColumnSorterInterface< FColumnSorterInterface::ESortType::HybridSort, ColumnType >.