Public Member Functions | Private Attributes

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.

      : mName(name) {}

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

Definition at line 62 of file creaImageIOTreeComparators.h.

{}


Member Function Documentation

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]

Definition at line 64 of file creaImageIOTreeComparators.h.

References mName.

{ return mName; }

bool creaImageIO::tree::LexicographicalComparator::operator() ( Node *const &  x,
Node *const &  y 
) [virtual]
void creaImageIO::tree::LexicographicalComparator::SetName ( const std::string &  s  )  [inline]

Definition at line 65 of file creaImageIOTreeComparators.h.

References mName.

{ mName = s; }


Member Data Documentation

Definition at line 84 of file creaImageIOTreeComparators.h.

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

Definition at line 83 of file creaImageIOTreeComparators.h.

Referenced by GetName(), and SetName().


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