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_ */
deg_type sugar
Definition: PairLS.h:47
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
wlen_type wlen
Definition: PairLS.h:46
This class defines PairLS.
Definition: PairLS.h:39
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
This class defines PairLSCompare.
Definition: PairLSCompare.h:28
Monomial lm
Definition: PairLS.h:51