ClearSilver::ClearSilverNodeComparatorName Class Reference

Comparator for ConstHDF dataset nodes.Comparator for ClearSilver HDF dataset nodes based on name. More...

#include <ClearSilverNodeComparatorName.h>

Inheritance diagram for ClearSilver::ClearSilverNodeComparatorName:

ClearSilver::ClearSilverNodeComparator List of all members.

Public Types

typedef boost::shared_ptr<
ClearSilverNodeComparator
Ptr
 Pointer type.

Public Member Functions

virtual int operator() (const ConstHDF &, const ConstHDF &) const
 Compare two ClearSilverNode objects by name.
Constructors and assignment operators
 ClearSilverNodeComparatorName ()
 Default constructor.
 ClearSilverNodeComparatorName (const ClearSilverNodeComparatorName &)
 Copy constructor.
virtual ~ClearSilverNodeComparatorName () throw ()
 Destructor.
ClearSilverNodeComparatorNameoperator= (const ClearSilverNodeComparatorName &)
 Assignment operator.
void swap (ClearSilverNodeComparatorName &) throw ()
 Swap contents with another object.

Detailed Description

Comparator for ConstHDF dataset nodes.Comparator for ClearSilver HDF dataset nodes based on name.

Definition at line 60 of file ClearSilverNodeComparatorName.h.


Member Function Documentation

int ClearSilver::ClearSilverNodeComparatorName::operator() const ConstHDF ,
const ConstHDF
const [virtual]
 

Compare two ClearSilverNode objects by name.

This method is analogous to the sort function required by qsort(3). It returns -1, 0, or +1 depending on whether the name of the first object is less than (<), equal (=), or greater than (>) the name of the second.

Implements ClearSilver::ClearSilverNodeComparator.

Definition at line 71 of file ClearSilverNodeComparatorName.cc.

References ClearSilver::ClearSilverNode::name(), and ClearSilver::ConstHDF::node().


The documentation for this class was generated from the following files:
Generated on Tue May 16 14:50:54 2006 for ClearSilver C++ Library by  doxygen 1.4.5