which performs lexicographical comparison More...
#include <creaImageIOTreeComparators.h>


Public Member Functions | |
| LexicographicalComparator (const std::string &name) | |
| ~LexicographicalComparator () | |
| const std::string & | GetName () const |
| void | SetName (const std::string &s) |
| void | Clear () |
| void | DeleteComparators () |
| void | Add (Comparator *c) |
| bool | operator() (Node *const &x, Node *const &y) |
Private Attributes | |
| std::string | mName |
| std::vector< Comparator * > | mComparator |
which performs lexicographical comparison
A Comparator which stores a vector of Comparators and
Definition at line 57 of file creaImageIOTreeComparators.h.
| creaImageIO::tree::LexicographicalComparator::LexicographicalComparator | ( | const std::string & | name | ) | [inline] |
Definition at line 60 of file creaImageIOTreeComparators.h.
: mName(name) {}
| creaImageIO::tree::LexicographicalComparator::~LexicographicalComparator | ( | ) | [inline] |
Definition at line 62 of file creaImageIOTreeComparators.h.
{}
| void creaImageIO::tree::LexicographicalComparator::Add | ( | Comparator * | c | ) | [inline] |
Definition at line 78 of file creaImageIOTreeComparators.h.
References mComparator.
{ mComparator.push_back(c); }
| void creaImageIO::tree::LexicographicalComparator::Clear | ( | ) | [inline] |
Definition at line 66 of file creaImageIOTreeComparators.h.
References mComparator.
{ mComparator.clear(); }
| void creaImageIO::tree::LexicographicalComparator::DeleteComparators | ( | ) | [inline] |
Definition at line 67 of file creaImageIOTreeComparators.h.
References mComparator.
{
std::vector<Comparator*>::iterator i;
for (i =mComparator.begin();
i!=mComparator.end();
++i)
{
delete *i;
}
mComparator.clear();
}
| const std::string& creaImageIO::tree::LexicographicalComparator::GetName | ( | ) | const [inline] |
| bool creaImageIO::tree::LexicographicalComparator::operator() | ( | Node *const & | x, | |
| Node *const & | y | |||
| ) | [virtual] |
Implements creaImageIO::tree::Comparator.
| void creaImageIO::tree::LexicographicalComparator::SetName | ( | const std::string & | s | ) | [inline] |
std::vector<Comparator*> creaImageIO::tree::LexicographicalComparator::mComparator [private] |
Definition at line 84 of file creaImageIOTreeComparators.h.
Referenced by Add(), Clear(), and DeleteComparators().
std::string creaImageIO::tree::LexicographicalComparator::mName [private] |
Definition at line 83 of file creaImageIOTreeComparators.h.
1.7.1