creaImageIO::tree::LexicographicalComparator Class Reference

which performs lexicographical comparison More...

#include <creaImageIOTreeComparators.h>

Inheritance diagram for creaImageIO::tree::LexicographicalComparator:

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

Collaboration graph
[legend]

List of all members.

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


Detailed Description

which performs lexicographical comparison

A Comparator which stores a vector of Comparators and

Definition at line 57 of file creaImageIOTreeComparators.h.


Constructor & Destructor Documentation

creaImageIO::tree::LexicographicalComparator::LexicographicalComparator ( const std::string &  name  )  [inline]

Definition at line 60 of file creaImageIOTreeComparators.h.

00061       : mName(name) {}

creaImageIO::tree::LexicographicalComparator::~LexicographicalComparator (  )  [inline]

Definition at line 62 of file creaImageIOTreeComparators.h.

00062 {}


Member Function Documentation

const std::string& creaImageIO::tree::LexicographicalComparator::GetName (  )  const [inline]

Definition at line 64 of file creaImageIOTreeComparators.h.

References mName.

00064 { return mName; }

void creaImageIO::tree::LexicographicalComparator::SetName ( const std::string &  s  )  [inline]

Definition at line 65 of file creaImageIOTreeComparators.h.

References mName.

00065 { mName = s; }

void creaImageIO::tree::LexicographicalComparator::Clear (  )  [inline]

Definition at line 66 of file creaImageIOTreeComparators.h.

References mComparator.

00066 { mComparator.clear(); }

void creaImageIO::tree::LexicographicalComparator::DeleteComparators (  )  [inline]

Definition at line 67 of file creaImageIOTreeComparators.h.

References mComparator.

00068     { 
00069        std::vector<Comparator*>::iterator i;
00070        for (i =mComparator.begin();
00071             i!=mComparator.end();
00072             ++i)
00073          {
00074            delete *i;
00075          }
00076        mComparator.clear(); 
00077     }

void creaImageIO::tree::LexicographicalComparator::Add ( Comparator c  )  [inline]

Definition at line 78 of file creaImageIOTreeComparators.h.

References mComparator.

00078 { mComparator.push_back(c); }

bool creaImageIO::tree::LexicographicalComparator::operator() ( Node *const &  x,
Node *const &  y 
) [virtual]

Implements creaImageIO::tree::Comparator.


Member Data Documentation

std::string creaImageIO::tree::LexicographicalComparator::mName [private]

Definition at line 83 of file creaImageIOTreeComparators.h.

Referenced by GetName(), and SetName().

std::vector<Comparator*> creaImageIO::tree::LexicographicalComparator::mComparator [private]

Definition at line 84 of file creaImageIOTreeComparators.h.

Referenced by Add(), Clear(), and DeleteComparators().


The documentation for this class was generated from the following file:
Generated on Mon Jun 22 10:50:11 2009 for CreaImageIO by  doxygen 1.5.3