Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
A struct that inherits from std::binary_function. You can use it 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 inherits from std::binary_function. You can use it in std::sort algorithm for sorting the property list elements.
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.
Definition at line 491 of file QmitkPropertiesTableModel.cpp.
bool QmitkPropertiesTableModel::PropertyDataSetCompareFunction::operator() | ( | const PropertyDataSet & | _Left, |
const PropertyDataSet & | _Right | ||
) | const |
The reimplemented compare function.
Definition at line 497 of file QmitkPropertiesTableModel.cpp.
|
protected |
Definition at line 164 of file QmitkPropertiesTableModel.h.
|
protected |
Definition at line 165 of file QmitkPropertiesTableModel.h.