Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkPropertiesTableModel::PropertyDataSetCompareFunction Struct Reference

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
 

Detailed Description

A struct that you can use in std::sort algorithm for sorting the property list elements.

Definition at line 119 of file QmitkPropertiesTableModel.h.

Member Enumeration Documentation

◆ CompareCriteria

Specifies field of the property with which it will be sorted.

Enumerator
CompareByName 
CompareByValue 

Definition at line 124 of file QmitkPropertiesTableModel.h.

◆ CompareOperator

Specifies Ascending/descending ordering.

Enumerator
Less 
Greater 

Definition at line 133 of file QmitkPropertiesTableModel.h.

Constructor & Destructor Documentation

◆ PropertyDataSetCompareFunction()

QmitkPropertiesTableModel::PropertyDataSetCompareFunction::PropertyDataSetCompareFunction ( CompareCriteria  _CompareCriteria = CompareByName,
CompareOperator  _CompareOperator = Less 
)

Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given.

Member Function Documentation

◆ operator()()

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

The reimplemented compare function.

Member Data Documentation

◆ m_CompareCriteria

CompareCriteria QmitkPropertiesTableModel::PropertyDataSetCompareFunction::m_CompareCriteria
protected

Definition at line 150 of file QmitkPropertiesTableModel.h.

◆ m_CompareOperator

CompareOperator QmitkPropertiesTableModel::PropertyDataSetCompareFunction::m_CompareOperator
protected

Definition at line 151 of file QmitkPropertiesTableModel.h.


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