PolyBoRi
ExpGreater.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_groebner_ExpGreater_h_
17 #define polybori_groebner_ExpGreater_h_
18 
19 // include basic definitions
20 #include "groebner_defs.h"
21 
23 
28 class ExpGreater:
29  public CFactoryBase {
30 public:
31  ExpGreater(const BoolePolyRing& ring): CFactoryBase(ring) {}
32 
33  bool operator()(const BooleExponent& lhs,
34  const BooleExponent& rhs) const {
35  return parent().ordering().compare(lhs,rhs)==CTypes::greater_than;
36  }
37 };
38 
40 
41 #endif /* polybori_ExpGreater_h_ */