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

CdbNTupleIsLessComparatorDefaultImpl.hh

Go to the documentation of this file.
00001 #ifndef CDB_NTUPLE_IS_LESS_COMPARATOR_DEFAULT_IMPLHH
00002 #define CDB_NTUPLE_IS_LESS_COMPARATOR_DEFAULT_IMPLHH
00003 
00004 // File and Version Information:
00005 //      $Id: CdbNTupleIsLessComparatorDefaultImpl.hh,v 1.1 2004/03/16 19:22:43 gapon Exp $
00006 
00007 #include "CdbTable/CdbNTupleIsLessComparator.hh"
00008 
00009 /// The default implementation for the "isLess" comparator.
00010 /**
00011   * This implementation does collumn wise comparision of two rows in
00012   * the "left-to-right" direction.
00013   *
00014   * REQUIREMENTS:
00015   *
00016   *   The type 'T' is expected to have the 'operator<' defined in order to use
00017   *   this comparator's implementation.
00018   *
00019   * @see class CdbNTuple
00020   * @see class CdbNTupleIsLessComparator
00021   */
00022 template < class T, unsigned int NCOL >
00023 class CdbNTupleIsLessComparatorDefaultImpl : public CdbNTupleIsLessComparator<T,NCOL> {
00024 
00025 public:
00026 
00027   /// Compare two rows
00028   /**
00029     * The implementation of the method defined by a base class or an interface.
00030     *
00031     * @see class CdbNTupleIsLessComparator
00032     */
00033     virtual bool isLess( const std::vector<T>& theLeftRow,
00034                          const std::vector<T>& theRightRow ) const;
00035 };
00036 
00037 #ifdef     BABAR_COMP_INST
00038 #include "CdbTable/CdbNTupleIsLessComparatorDefaultImpl.cc"
00039 #endif  // BABAR_COMP_INST
00040 
00041 #endif // CDB_NTUPLE_IS_LESS_COMPARATOR_DEFAULT_IMPLHH
00042 

Generated on Mon Dec 5 18:22:07 2005 for CDB by doxygen1.3-rc3