KBinTerm¶
-
class KBinTerm : public KTerm¶
This class represent an expression of the form X (+ , -) Y + cste where X and Y are variables and cste an integer constant.
Public Functions
-
KBinTerm()¶
Default Constructor.
-
KBinTerm(const KNumVar &v1, const bool sign1, const KNumVar &v2, const bool sign2, const double cste)¶
Primary constructor
- Parameters
v1 – the first variable
sign1 – sign of v1
v2 – the second variable
sign2 – sign of v2
cste – the constant
-
inline bool getSign1() const¶
return true if the sign of the first variable is positive
-
inline bool getSign2() const¶
return true if the sign of the second variable is positive
-
virtual void print(std::ostream &fout) const¶
pretty print method
-
virtual void print() const¶
pretty print method
-
KBinTerm()¶