00001 // -*- c++ -*- 00002 //***************************************************************************** 00014 //***************************************************************************** 00015 00016 #ifndef polybori_groebner_LexOrderGreaterComparer_h_ 00017 #define polybori_groebner_LexOrderGreaterComparer_h_ 00018 00019 // include basic definitions 00020 #include "groebner_defs.h" 00021 00022 BEGIN_NAMESPACE_PBORIGB 00023 00028 class LexOrderGreaterComparer{ 00029 LexOrder o; 00030 public: 00031 bool operator() (const Monomial& m1, const Monomial& m2){ 00032 return o.compare(m1,m2)==BoolePolyRing::greater_than; 00033 } 00034 bool operator() (const Exponent& m1, const Exponent& m2){ 00035 return o.compare(m1,m2)==BoolePolyRing::greater_than; 00036 } 00037 }; 00038 00039 END_NAMESPACE_PBORIGB 00040 00041 #endif /* polybori_LexOrderGreaterComparer_h_ */