Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkDataStorageTableModel::DataNodeCompareFunction Struct Reference

A struct that inherits from std::binary_function. You can use it in std::sort algorithm for sorting the node list elements. More...

#include <QmitkDataStorageTableModel.h>

Inheritance diagram for QmitkDataStorageTableModel::DataNodeCompareFunction:
Collaboration diagram for QmitkDataStorageTableModel::DataNodeCompareFunction:

Public Types

enum  CompareCriteria { CompareByName, CompareByClassName, CompareByVisibility }
 Specifies field of the property with which it will be sorted. More...
 
enum  CompareOperator { Less, Greater }
 Specifies Ascending/descending ordering. More...
 

Public Member Functions

 DataNodeCompareFunction (CompareCriteria _CompareCriteria=CompareByName, CompareOperator _CompareOperator=Less)
 Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given. More...
 
bool operator() (const mitk::DataNode::Pointer &_Left, const mitk::DataNode::Pointer &_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 node list elements.

Definition at line 148 of file QmitkDataStorageTableModel.h.

Member Enumeration Documentation

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

Enumerator
CompareByName 
CompareByClassName 
CompareByVisibility 

Definition at line 153 of file QmitkDataStorageTableModel.h.

Specifies Ascending/descending ordering.

Enumerator
Less 
Greater 

Definition at line 163 of file QmitkDataStorageTableModel.h.

Constructor & Destructor Documentation

QmitkDataStorageTableModel::DataNodeCompareFunction::DataNodeCompareFunction ( CompareCriteria  _CompareCriteria = CompareByName,
CompareOperator  _CompareOperator = Less 
)

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

Definition at line 474 of file QmitkDataStorageTableModel.cpp.

Member Function Documentation

bool QmitkDataStorageTableModel::DataNodeCompareFunction::operator() ( const mitk::DataNode::Pointer _Left,
const mitk::DataNode::Pointer _Right 
) const

The reimplemented compare function.

Definition at line 480 of file QmitkDataStorageTableModel.cpp.

Member Data Documentation

CompareCriteria QmitkDataStorageTableModel::DataNodeCompareFunction::m_CompareCriteria
protected

Definition at line 179 of file QmitkDataStorageTableModel.h.

CompareOperator QmitkDataStorageTableModel::DataNodeCompareFunction::m_CompareOperator
protected

Definition at line 180 of file QmitkDataStorageTableModel.h.


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