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_ */
This class is just a wrapper for using variables for storing indices as interim data structure for Bo...
Definition: BooleExponent.h:34
bool operator()(const BooleExponent &lhs, const BooleExponent &rhs) const
Definition: ExpGreater.h:33
ExpGreater(const BoolePolyRing &ring)
Definition: ExpGreater.h:31
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
This class reinterprets decicion diagram managers as Boolean polynomial rings, adds an ordering and v...
Definition: BoolePolyRing.h:40
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
This base class CFactoryBase is used for currying other constructors with a BoolePolyRing.
Definition: CFactoryBase.h:35
This class defines ExpGreater.
Definition: ExpGreater.h:28