Base class for non-linear expressions over integer variables. More...
#include <minimodel.hh>
Public Member Functions | |
virtual IntVar | post (Home home, IntVar *ret, IntConLevel icl) const =0 |
Return variable constrained to be equal to the expression. More... | |
virtual void | post (Home home, IntRelType irt, int c, IntConLevel icl) const =0 |
Post expression to be in relation irt with c. More... | |
virtual void | post (Home home, IntRelType irt, int c, BoolVar b, IntConLevel icl) const =0 |
Post reified expression to be in relation irt with c. More... | |
virtual | ~NonLinIntExpr (void) |
Destructor. More... | |
void * | operator new (size_t size) |
Memory management. More... | |
void | operator delete (void *p, size_t) |
Memory management. More... | |
Static Public Member Functions | |
static IntVar | result (Home home, IntVar *x) |
Return fresh variable if x is NULL, x otherwise. More... | |
static IntVar | result (Home home, IntVar *x, IntVar y) |
Constrain x to be equal to y if x is not NULL. More... | |
Base class for non-linear expressions over integer variables.
Definition at line 107 of file minimodel.hh.
|
inlinevirtual |
Destructor.
Definition at line 118 of file minimodel.hh.
|
pure virtual |
Return variable constrained to be equal to the expression.
Implemented in Gecode::MiniModel::SetNonLinIntExpr, and Gecode::MiniModel::ArithNonLinIntExpr.
|
pure virtual |
Post expression to be in relation irt with c.
Implemented in Gecode::MiniModel::SetNonLinIntExpr, and Gecode::MiniModel::ArithNonLinIntExpr.
|
pure virtual |
Post reified expression to be in relation irt with c.
Implemented in Gecode::MiniModel::SetNonLinIntExpr, and Gecode::MiniModel::ArithNonLinIntExpr.
Return fresh variable if x is NULL, x otherwise.
Definition at line 120 of file minimodel.hh.
Constrain x to be equal to y if x is not NULL.
Definition at line 126 of file minimodel.hh.
|
inline |
Memory management.
Definition at line 132 of file minimodel.hh.
|
inline |
Memory management.
Definition at line 134 of file minimodel.hh.