Public Member Functions | Public Attributes | Private Attributes

creaImageIO::tree::FloatComparator Struct Reference

Comparator which compares the values of a given Attribute of the Nodes which is decoded as an float value. More...

#include <creaImageIOTreeComparators.h>

Inheritance diagram for creaImageIO::tree::FloatComparator:
Inheritance graph
[legend]
Collaboration diagram for creaImageIO::tree::FloatComparator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FloatComparator (const std::string &key, bool reverse_order)
virtual bool compare (Node *const &x, Node *const &y)
virtual bool operator() (Node *const &x, Node *const &y)

Public Attributes

bool mReverseOrder

Private Attributes

std::string mKey

Detailed Description

Comparator which compares the values of a given Attribute of the Nodes which is decoded as an float value.

Definition at line 111 of file creaImageIOTreeComparators.h.


Constructor & Destructor Documentation

creaImageIO::tree::FloatComparator::FloatComparator ( const std::string &  key,
bool  reverse_order 
) [inline]

Definition at line 114 of file creaImageIOTreeComparators.h.

      : 
      ComparatorWithOrder(reverse_order),
      mKey(key)
    {}


Member Function Documentation

virtual bool creaImageIO::tree::FloatComparator::compare ( Node *const &  x,
Node *const &  y 
) [virtual]
virtual bool creaImageIO::tree::ComparatorWithOrder::operator() ( Node *const &  x,
Node *const &  y 
) [inline, virtual, inherited]

Implements creaImageIO::tree::Comparator.

Definition at line 42 of file creaImageIOTreeComparators.h.

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

    {
      if (mReverseOrder) return this->compare(y,x);
      return this->compare(x,y);
    };

Here is the call graph for this function:


Member Data Documentation

Definition at line 124 of file creaImageIOTreeComparators.h.


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