dReal4
|
Factory class to help build ExpressionMul expressions. More...
Public Member Functions | |
ExpressionMulFactory (const ExpressionMulFactory &)=default | |
ExpressionMulFactory & | operator= (const ExpressionMulFactory &)=default |
ExpressionMulFactory (ExpressionMulFactory &&)=default | |
ExpressionMulFactory & | operator= (ExpressionMulFactory &&)=default |
ExpressionMulFactory ()=default | |
Default constructor. More... | |
~ExpressionMulFactory ()=default | |
Default destructor. More... | |
ExpressionMulFactory (double constant, std::map< Expression, Expression > base_to_exponent_map) | |
Constructs ExpressionMulFactory with constant and base_to_exponent_map . More... | |
ExpressionMulFactory (const ExpressionMul *ptr) | |
Constructs ExpressionMulFactory from ptr . More... | |
ExpressionMulFactory & | AddExpression (const Expression &e) |
Adds e to this factory. More... | |
ExpressionMulFactory & | Add (const ExpressionMul *ptr) |
Adds ExpressionMul pointed by ptr to this factory. More... | |
ExpressionMulFactory & | operator= (const ExpressionMul *ptr) |
Assigns a factory from a pointer to ExpressionMul. More... | |
ExpressionMulFactory & | Negate () |
Negates the expressions in factory. More... | |
Expression | GetExpression () |
Returns a symbolic expression. More... | |
Factory class to help build ExpressionMul expressions.
GetExpression()
is called and an expression is generated, this class should not be used again. If another GetExpression()
is called, it will throws an exception.
|
default |
Default constructor.
It constructs.
|
default |
Default destructor.
ExpressionMulFactory | ( | double | constant, |
std::map< Expression, Expression > | base_to_exponent_map | ||
) |
Constructs ExpressionMulFactory with constant
and base_to_exponent_map
.
|
explicit |
Constructs ExpressionMulFactory from ptr
.
ExpressionMulFactory & Add | ( | const ExpressionMul * | ptr | ) |
Adds ExpressionMul pointed by ptr
to this factory.
ExpressionMulFactory & AddExpression | ( | const Expression & | e | ) |
Adds e
to this factory.
Expression GetExpression | ( | ) |
Returns a symbolic expression.
ExpressionMulFactory & Negate | ( | ) |
Negates the expressions in factory.
If it represents c0 * p1 * ... * pn, this method flips it into -c0 * p1 * ... * pn.
ExpressionMulFactory & operator= | ( | const ExpressionMul * | ptr | ) |
Assigns a factory from a pointer to ExpressionMul.