libyui-ncurses  2.57.2
NCTableSortStrategyBase Class Referenceabstract

Support classes for sorting by column in a table for use in an NCTablePad. More...

#include <NCTableSort.h>

Inheritance diagram for NCTableSortStrategyBase:

Public Member Functions

 NCTableSortStrategyBase (int sortCol=0, bool reverse=false)
 
virtual void sort (YItemIterator begin, YItemIterator end)=0
 Sort items between 'begin' and 'end' in place. More...
 
int sortCol () const
 
void setSortCol (int col)
 
bool reverse () const
 
void setReverse (bool reverse)
 

Detailed Description

Support classes for sorting by column in a table for use in an NCTablePad.

Abstract base class for sorting strategies.

Definition at line 35 of file NCTableSort.h.

Member Function Documentation

◆ sort()

virtual void NCTableSortStrategyBase::sort ( YItemIterator  begin,
YItemIterator  end 
)
pure virtual

Sort items between 'begin' and 'end' in place.

Derived classes are required to implement this.

Implemented in NCTableSortDefault.


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