PolyBoRi
VariablePairData.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_groebner_VariablePairData_h_
17 #define polybori_groebner_VariablePairData_h_
18 
19 // include basic definitions
20 #include "groebner_defs.h"
21 
23 
28 class VariablePairData: public PairData{
29 public:
30  int i;
32  Polynomial extract(const PolyEntryVector& gen) const {
33  return Monomial(Variable(v, gen[i].p.ring()))*gen[i].p;
34  }
36  this->v=v;
37  this->i=i;
38  }
39 };
40 
42 
43 #endif /* polybori_VariablePairData_h_ */
Definition: PolyEntryVector.h:28
idx_type v
Definition: VariablePairData.h:31
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
int i
Definition: VariablePairData.h:30
This class defines VariablePairData.
Definition: VariablePairData.h:28
#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
This class defines PairData.
Definition: PairData.h:30
BooleVariable Variable
Definition: embed.h:52
Polynomial extract(const PolyEntryVector &gen) const
Definition: VariablePairData.h:32
polybori::CTypes::idx_type idx_type
Definition: groebner_defs.h:44
BooleMonomial Monomial
Definition: embed.h:53
VariablePairData(int i, idx_type v)
Definition: VariablePairData.h:35