PolyBoRi
MonomialPlusOneTerms.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_groebner_MonomialPlusOneTerms_h_
17 #define polybori_groebner_MonomialPlusOneTerms_h_
18 
19 #include "TermsFacade.h"
20 #include "PolyEntry.h"
21 
22 // include basic definitions
23 #include "groebner_defs.h"
24 
26 
32  public TermsFacade<MonomialPlusOneTerms> {
33 
34 public:
35  template <class Type>
37 
38  bool isCompatible(const PolyEntry& entry) const {
39  PBORI_ASSERT( (entry.length != 2) || entry.p.isPair());
40  return (entry.length == 2) && (entry.p.hasConstantPart());
41  }
42 };
43 
45 
46 #endif /* polybori_groebner_MonomialPlusOneTerms_h_ */
bool_type isPair() const
Test, whether we have two terms only.
Definition: BoolePolynomial.h:475
This class defines MonomialPlusOneTerms.
Definition: MonomialPlusOneTerms.h:31
Polynomial p
Definition: PolyEntryBase.h:54
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
bool_type hasConstantPart() const
Check whether polynomial has term one.
Definition: BoolePolynomial.h:303
This class defines TermsFacade.
Definition: TermsFacade.h:30
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
This class defines PolyEntry.
Definition: PolyEntry.h:32
#define PBORI_ASSERT(arg)
Definition: pbori_defs.h:118
len_type length
Definition: PolyEntryBase.h:57
MonomialPlusOneTerms(const Type &rhs)
Definition: MonomialPlusOneTerms.h:36
bool isCompatible(const PolyEntry &entry) const
Definition: MonomialPlusOneTerms.h:38