The class IntExpr is the base of all integer expressions in constraint programming. It contains the basic protocol for an expression:
- setting and modifying its bound
- querying if it is bound
- listening to events modifying its bounds
- casting it into a variable (instance of IntVar)
Definition at line 4194 of file constraint_solver.h.
#include <constraint_solver.h>
◆ IntExpr() [1/2]
| operations_research::IntExpr::IntExpr |
( |
Solver *const | s | ) |
|
|
inlineexplicit |
◆ IntExpr() [2/2]
| operations_research::IntExpr::IntExpr |
( |
const IntExpr & | | ) |
|
|
delete |
| operations_research::IntExpr::~IntExpr |
( |
| ) |
|
|
inlineoverride |
◆ Accept()
| void operations_research::IntExpr::Accept |
( |
ModelVisitor * | visitor | ) |
const |
|
virtual |
◆ Bound()
| virtual bool operations_research::IntExpr::Bound |
( |
| ) |
const |
|
inlinevirtual |
◆ IsVar()
| virtual bool operations_research::IntExpr::IsVar |
( |
| ) |
const |
|
inlinevirtual |
◆ Max()
| virtual int64_t operations_research::IntExpr::Max |
( |
| ) |
const |
|
pure virtual |
◆ Min()
| virtual int64_t operations_research::IntExpr::Min |
( |
| ) |
const |
|
pure virtual |
◆ operator=()
◆ Range()
| virtual void operations_research::IntExpr::Range |
( |
int64_t * | l, |
|
|
int64_t * | u ) |
|
inlinevirtual |
◆ SetMax()
| virtual void operations_research::IntExpr::SetMax |
( |
int64_t | m | ) |
|
|
pure virtual |
◆ SetMin()
| virtual void operations_research::IntExpr::SetMin |
( |
int64_t | m | ) |
|
|
pure virtual |
◆ SetRange()
| virtual void operations_research::IntExpr::SetRange |
( |
int64_t | l, |
|
|
int64_t | u ) |
|
inlinevirtual |
◆ SetValue()
| virtual void operations_research::IntExpr::SetValue |
( |
int64_t | v | ) |
|
|
inlinevirtual |
◆ Var()
| virtual IntVar * operations_research::IntExpr::Var |
( |
| ) |
|
|
pure virtual |
◆ VarWithName()
| IntVar * operations_research::IntExpr::VarWithName |
( |
const std::string & | name | ) |
|
Creates a variable from the expression and set the name of the resulting var. If the expression is already a variable, then it will set the name of the expression, possibly overwriting it. This is just a shortcut to Var() followed by set_name().
Definition at line 51 of file expressions.cc.
◆ WhenRange() [1/3]
| virtual void operations_research::IntExpr::WhenRange |
( |
Demon * | d | ) |
|
|
pure virtual |
◆ WhenRange() [2/3]
Attach a demon that will watch the min or the max of the expression.
Definition at line 4249 of file constraint_solver.h.
◆ WhenRange() [3/3]
Attach a demon that will watch the min or the max of the expression.
Definition at line 4243 of file constraint_solver.h.
The documentation for this class was generated from the following files: