creaImageIO_lib
creaImageIO::tree::NodePatientBirthdayComparator Struct Reference

Compares the birthdays of the patients. More...

#include <creaImageIOTreeComparators.h>

Inheritance diagram for creaImageIO::tree::NodePatientBirthdayComparator:
Collaboration diagram for creaImageIO::tree::NodePatientBirthdayComparator:

Public Member Functions

 NodePatientBirthdayComparator (bool o=false)
 
virtual bool compare (Node *const &x, Node *const &y)
 
virtual bool operator() (Node *const &x, Node *const &y)
 

Public Attributes

bool mReverseOrder
 

Detailed Description

Compares the birthdays of the patients.

Definition at line 217 of file creaImageIOTreeComparators.h.

Constructor & Destructor Documentation

creaImageIO::tree::NodePatientBirthdayComparator::NodePatientBirthdayComparator ( bool  o = false)
inline

Definition at line 217 of file creaImageIOTreeComparators.h.

Member Function Documentation

virtual bool creaImageIO::tree::StringComparator::compare ( Node *const &  x,
Node *const &  y 
)
virtualinherited
virtual bool creaImageIO::tree::ComparatorWithOrder::operator() ( Node *const &  x,
Node *const &  y 
)
inlinevirtualinherited

Implements creaImageIO::tree::Comparator.

Definition at line 70 of file creaImageIOTreeComparators.h.

References creaImageIO::tree::ComparatorWithOrder::compare(), and creaImageIO::tree::ComparatorWithOrder::mReverseOrder.

71  {
72  if (mReverseOrder) return this->compare(y,x);
73  return this->compare(x,y);
74  };

Here is the call graph for this function:

Member Data Documentation

bool creaImageIO::tree::ComparatorWithOrder::mReverseOrder
inherited

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