PolyBoRi
PSCompareByEl.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_groebner_PSCompareByEl_h_
17 #define polybori_groebner_PSCompareByEl_h_
18 
19 // include basic definitions
20 #include "groebner_defs.h"
21 
23 
29 public:
30  bool operator() (const PolynomialSugar& p1, const PolynomialSugar& p2){
31  return ((p1.getSugar()<p2.getSugar()) ||((p1.getSugar()<=p2.getSugar()) && (p1.eliminationLength()<p2.eliminationLength())));
32  }
33 };
34 
36 
37 #endif /* polybori_PSCompareByEl_h_ */