PolyBoRi
PairLSCompare.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_groebner_PairLSCompare_h_
17 #define polybori_groebner_PairLSCompare_h_
18 
19 // include basic definitions
20 #include "groebner_defs.h"
21 
23 
29 public:
31  bool operator() (const PairLS& l, const PairLS& r){
32  if (l.sugar!=r.sugar) return l.sugar>r.sugar; //greater sugar, less importance
33  if (l.wlen!=r.wlen) return l.wlen>r.wlen;
34  if (l.lm!=r.lm) return l.lm>r.lm;
35 
37  return false;
38  }
39 };
40 
42 
43 #endif /* polybori_PairLSCompare_h_ */