#include <creaImageIOTreeComparators.h>
Public Member Functions | |
StringComparator (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 |
Definition at line 130 of file creaImageIOTreeComparators.h.
creaImageIO::tree::StringComparator::StringComparator | ( | const std::string & | key, | |
bool | reverse_order | |||
) | [inline] |
Definition at line 133 of file creaImageIOTreeComparators.h.
00135 : 00136 ComparatorWithOrder(reverse_order), 00137 mKey(key) 00138 {}
virtual bool creaImageIO::tree::StringComparator::compare | ( | Node *const & | x, | |
Node *const & | y | |||
) | [virtual] |
Implements creaImageIO::tree::ComparatorWithOrder.
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.
00043 { 00044 if (mReverseOrder) return this->compare(y,x); 00045 return this->compare(x,y); 00046 };
std::string creaImageIO::tree::StringComparator::mKey [private] |
Definition at line 143 of file creaImageIOTreeComparators.h.
bool creaImageIO::tree::ComparatorWithOrder::mReverseOrder [inherited] |
Definition at line 46 of file creaImageIOTreeComparators.h.
Referenced by creaImageIO::tree::ComparatorWithOrder::operator()().