Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPropertiesTableModel::PropertyDataSetCompareFunction Struct Reference

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>

Inheritance diagram for QmitkPropertiesTableModel::PropertyDataSetCompareFunction:
Collaboration diagram for QmitkPropertiesTableModel::PropertyDataSetCompareFunction:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

bool QmitkPropertiesTableModel::PropertyDataSetCompareFunction::operator() ( const PropertyDataSet _Left,
const PropertyDataSet _Right 
) const

The reimplemented compare function.

Definition at line 497 of file QmitkPropertiesTableModel.cpp.

Member Data Documentation

CompareCriteria QmitkPropertiesTableModel::PropertyDataSetCompareFunction::m_CompareCriteria
protected

Definition at line 164 of file QmitkPropertiesTableModel.h.

CompareOperator QmitkPropertiesTableModel::PropertyDataSetCompareFunction::m_CompareOperator
protected

Definition at line 165 of file QmitkPropertiesTableModel.h.


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