PolyBoRi
PairLSCompare.h
Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //*****************************************************************************
00014 //*****************************************************************************
00015 
00016 #ifndef polybori_groebner_PairLSCompare_h_
00017 #define polybori_groebner_PairLSCompare_h_
00018 
00019 // include basic definitions
00020 #include "groebner_defs.h"
00021 
00022 BEGIN_NAMESPACE_PBORIGB
00023 
00028 class PairLSCompare{
00029 public:
00031   bool operator() (const PairLS& l, const PairLS& r){
00032     if (l.sugar!=r.sugar) return l.sugar>r.sugar; //greater sugar, less importance
00033     if (l.wlen!=r.wlen) return l.wlen>r.wlen;
00034     if (l.lm!=r.lm) return l.lm>r.lm;
00035     
00037     return false;
00038   }
00039 };
00040 
00041 END_NAMESPACE_PBORIGB
00042 
00043 #endif /* polybori_PairLSCompare_h_ */