Euphoria
eu::core::SortBuilder< T, TSelf > Struct Template Reference

#include <multisort.h>

Public Member Functions

template<typename TSortFunc , typename TValue >
TSelf & sort (TValue T::*member, TSortFunc sort_func, SortStyle sort_style=SortStyle::ascending)
 
template<typename TValue >
TSelf & sort (TValue T::*member, SortStyle sort_style=SortStyle::ascending)
 
TSelf & use_stable_sort ()
 

Public Attributes

SortableList< T > sort_order
 
bool stable_sort = false
 

Detailed Description

template<typename T, typename TSelf>
struct eu::core::SortBuilder< T, TSelf >

Parameters
TSelfself for a CRTP reference

Definition at line 74 of file multisort.h.

Member Function Documentation

◆ sort() [1/2]

template<typename T , typename TSelf >
template<typename TValue >
TSelf& eu::core::SortBuilder< T, TSelf >::sort ( TValue T::*  member,
SortStyle  sort_style = SortStyle::ascending 
)
inline

Definition at line 98 of file multisort.h.

◆ sort() [2/2]

template<typename T , typename TSelf >
template<typename TSortFunc , typename TValue >
TSelf& eu::core::SortBuilder< T, TSelf >::sort ( TValue T::*  member,
TSortFunc  sort_func,
SortStyle  sort_style = SortStyle::ascending 
)
inline

Definition at line 81 of file multisort.h.

◆ use_stable_sort()

template<typename T , typename TSelf >
TSelf& eu::core::SortBuilder< T, TSelf >::use_stable_sort ( )
inline

Definition at line 104 of file multisort.h.

Member Data Documentation

◆ sort_order

template<typename T , typename TSelf >
SortableList<T> eu::core::SortBuilder< T, TSelf >::sort_order

Definition at line 76 of file multisort.h.

◆ stable_sort

template<typename T , typename TSelf >
bool eu::core::SortBuilder< T, TSelf >::stable_sort = false

Definition at line 77 of file multisort.h.


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