Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
A struct that you can use in std::sort algorithm for sorting the property list elements. More...
#include <QmitkPropertiesTableModel.h>
Public Types | |
enum | CompareCriteria { CompareByName, CompareByValue } |
Specifies field of the property with which it will be sorted. More... | |
enum | CompareOperator { Less, Greater } |
Specifies Ascending/descending ordering. More... | |
Public Member Functions | |
PropertyDataSetCompareFunction (CompareCriteria _CompareCriteria=CompareByName, CompareOperator _CompareOperator=Less) | |
Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given. More... | |
bool | operator() (const PropertyDataSet &_Left, const PropertyDataSet &_Right) const |
The reimplemented compare function. More... | |
Protected Attributes | |
CompareCriteria | m_CompareCriteria |
CompareOperator | m_CompareOperator |
A struct that you can use in std::sort algorithm for sorting the property list elements.
Definition at line 119 of file QmitkPropertiesTableModel.h.
Specifies field of the property with which it will be sorted.
Enumerator | |
---|---|
CompareByName | |
CompareByValue |
Definition at line 124 of file QmitkPropertiesTableModel.h.
Specifies Ascending/descending ordering.
Enumerator | |
---|---|
Less | |
Greater |
Definition at line 133 of file QmitkPropertiesTableModel.h.
QmitkPropertiesTableModel::PropertyDataSetCompareFunction::PropertyDataSetCompareFunction | ( | CompareCriteria | _CompareCriteria = CompareByName , |
CompareOperator | _CompareOperator = Less |
||
) |
Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given.
bool QmitkPropertiesTableModel::PropertyDataSetCompareFunction::operator() | ( | const PropertyDataSet & | _Left, |
const PropertyDataSet & | _Right | ||
) | const |
The reimplemented compare function.
|
protected |
Definition at line 150 of file QmitkPropertiesTableModel.h.
|
protected |
Definition at line 151 of file QmitkPropertiesTableModel.h.