PolyBoRi
TimesConstantImplication.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_groebner_TimesConstantImplication_h_
17 #define polybori_groebner_TimesConstantImplication_h_
18 
19 // include basic definitions
20 #include "groebner_defs.h"
21 
23 
32 public:
33  template <class PairType>
34  Polynomial operator()(const Polynomial& lhs, const PairType& rhs) const {
35  return lhs * (lhs.ring().variable(rhs.first) + bool(rhs.second) );
36  }
37 };
38 
40 
41 #endif /* polybori_groebner_TimesConstantImplication_h_ */
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
var_type variable(checked_idx_type nvar) const
Access nvar-th ring variable as diagram.
Definition: BoolePolyRing.cc:99
const ring_type & ring() const
Access ring, where this belongs to.
Definition: BoolePolynomial.h:478
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
This class wraps the underlying decicion diagram type and defines the necessary operations.
Definition: BoolePolynomial.h:85
Polynomial operator()(const Polynomial &lhs, const PairType &rhs) const
Definition: TimesConstantImplication.h:34
Definition: TimesConstantImplication.h:31