MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SortableMythGenericTreeList Class Reference
Inheritance diagram for SortableMythGenericTreeList:
[legend]
Collaboration diagram for SortableMythGenericTreeList:
[legend]

Public Types

enum  SortType : std::uint8_t { SORT_STRING =0, SORT_SELECTABLE =1 }
 

Public Member Functions

 SortableMythGenericTreeList ()=default
 
void SetSortType (SortType stype)
 
void SetAttributeIndex (int index)
 
void Sort (SortType stype, int attributeIndex=0)
 

Static Public Member Functions

static bool sortByString (MythGenericTree *one, MythGenericTree *two)
 
static int sortBySelectable (MythGenericTree *one, MythGenericTree *two)
 

Private Attributes

SortType m_sortType {SORT_STRING}
 
int m_attributeIndex {0}
 

Detailed Description

Definition at line 13 of file mythgenerictree.cpp.

Member Enumeration Documentation

◆ SortType

Enumerator
SORT_STRING 
SORT_SELECTABLE 

Definition at line 17 of file mythgenerictree.cpp.

Constructor & Destructor Documentation

◆ SortableMythGenericTreeList()

SortableMythGenericTreeList::SortableMythGenericTreeList ( )
default

Member Function Documentation

◆ SetSortType()

void SortableMythGenericTreeList::SetSortType ( SortType  stype)
inline

Definition at line 19 of file mythgenerictree.cpp.

◆ SetAttributeIndex()

void SortableMythGenericTreeList::SetAttributeIndex ( int  index)
inline

Definition at line 20 of file mythgenerictree.cpp.

◆ sortByString()

static bool SortableMythGenericTreeList::sortByString ( MythGenericTree one,
MythGenericTree two 
)
inlinestatic

Definition at line 23 of file mythgenerictree.cpp.

Referenced by Sort().

◆ sortBySelectable()

static int SortableMythGenericTreeList::sortBySelectable ( MythGenericTree one,
MythGenericTree two 
)
inlinestatic

Definition at line 28 of file mythgenerictree.cpp.

Referenced by Sort().

◆ Sort()

void SortableMythGenericTreeList::Sort ( SortType  stype,
int  attributeIndex = 0 
)
inline

Member Data Documentation

◆ m_sortType

SortType SortableMythGenericTreeList::m_sortType {SORT_STRING}
private

Definition at line 56 of file mythgenerictree.cpp.

Referenced by SetSortType(), and Sort().

◆ m_attributeIndex

int SortableMythGenericTreeList::m_attributeIndex {0}
private

Definition at line 57 of file mythgenerictree.cpp.

Referenced by SetAttributeIndex(), and Sort().


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