Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbNTupleIsLessComparator< T, NCOL > Class Template Reference

An abstract base class for the "isLess" comparator of two rows in an n-tuple. More...

#include <CdbNTupleIsLessComparator.hh>

Inheritance diagram for CdbNTupleIsLessComparator< T, NCOL >:

CdbNTupleIsLessComparatorDefaultImpl< T, NCOL > List of all members.

Public Member Functions

virtual ~CdbNTupleIsLessComparator ()
 The destructor.

virtual bool isLess (const std::vector< T > &theLeftRow, const std::vector< T > &theRightRow) const=0
 Compare two rows.


Detailed Description

template<class T, unsigned int NCOL>
class CdbNTupleIsLessComparator< T, NCOL >

An abstract base class for the "isLess" comparator of two rows in an n-tuple.

This class provides a base interface for actual implementations of the comparision operation carrying a user defined semantics.

NOTE: Although the number of columns parameter is not directly used in this interface it's still requires as it may be used in actual implementation of the comparision operation. This will also enforce using the right comparator class matching the n-tuple with the same signature.

See also:
class CdbNTuple

Definition at line 24 of file CdbNTupleIsLessComparator.hh.


Constructor & Destructor Documentation

template<class T, unsigned int NCOL>
CdbNTupleIsLessComparator< T, NCOL >::~CdbNTupleIsLessComparator   [virtual]
 

The destructor.

Just to enforce the virtual destructor.

Definition at line 14 of file CdbNTupleIsLessComparator.cc.


Member Function Documentation

template<class T, unsigned int NCOL>
virtual bool CdbNTupleIsLessComparator< T, NCOL >::isLess const std::vector< T > &    theLeftRow,
const std::vector< T > &    theRightRow
const [pure virtual]
 

Compare two rows.

This method has to be implemented by a subclass.

The method will return "true" if "theLeftRow" is strictly less than "theRightRow".

Implemented in CdbNTupleIsLessComparatorDefaultImpl< T, NCOL >.


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:22 2005 for CDB by doxygen1.3-rc3