C++ Reference
C++ Reference: Routing
Detailed Description
Definition at line 101 of file constraint_solveri.h.
Public Member Functions | |
| BaseIntExpr (Solver *const s) | |
| ~BaseIntExpr () override | |
| IntVar * | Var () override |
| Creates a variable from the expression. More... | |
| virtual IntVar * | CastToVar () |
| virtual int64_t | Min () const =0 |
| virtual void | SetMin (int64_t m)=0 |
| virtual int64_t | Max () const =0 |
| virtual void | SetMax (int64_t m)=0 |
| virtual void | Range (int64_t *l, int64_t *u) |
| By default calls Min() and Max(), but can be redefined when Min and Max code can be factorized. More... | |
| virtual void | SetRange (int64_t l, int64_t u) |
| This method sets both the min and the max of the expression. More... | |
| virtual void | SetValue (int64_t v) |
| This method sets the value of the expression. More... | |
| virtual bool | Bound () const |
| Returns true if the min and the max of the expression are equal. More... | |
| virtual bool | IsVar () const |
| Returns true if the expression is indeed a variable. More... | |
| IntVar * | VarWithName (const std::string &name) |
| Creates a variable from the expression and set the name of the resulting var. More... | |
| virtual void | WhenRange (Demon *d)=0 |
| Attach a demon that will watch the min or the max of the expression. More... | |
| void | WhenRange (Solver::Closure closure) |
| Attach a demon that will watch the min or the max of the expression. More... | |
| void | WhenRange (Solver::Action action) |
| Attach a demon that will watch the min or the max of the expression. More... | |
| virtual void | Accept (ModelVisitor *const visitor) const |
| Accepts the given visitor. More... | |
| std::string | DebugString () const override |
| Solver * | solver () const |
| void | FreezeQueue () |
| This method freezes the propagation queue. More... | |
| void | UnfreezeQueue () |
| This method unfreezes the propagation queue. More... | |
| void | EnqueueDelayedDemon (Demon *const d) |
| This method pushes the demon onto the propagation queue. More... | |
| void | EnqueueVar (Demon *const d) |
| void | ExecuteAll (const SimpleRevFIFO< Demon * > &demons) |
| void | EnqueueAll (const SimpleRevFIFO< Demon * > &demons) |
| void | set_action_on_fail (Solver::Action a) |
| void | reset_action_on_fail () |
| This method clears the failure callback. More... | |
| void | set_variable_to_clean_on_fail (IntVar *v) |
| Shortcut for variable cleaner. More... | |
| virtual std::string | name () const |
| Object naming. More... | |
| void | set_name (const std::string &name) |
| bool | HasName () const |
| Returns whether the object has been named or not. More... | |
| virtual std::string | BaseName () const |
| Returns a base name for automatic naming. More... | |
Constructor & Destructor Documentation
◆ BaseIntExpr()
|
inlineexplicit |
Definition at line 103 of file constraint_solveri.h.
◆ ~BaseIntExpr()
|
inlineoverride |
Definition at line 104 of file constraint_solveri.h.
Member Function Documentation
◆ Accept()
|
virtualinherited |
Accepts the given visitor.
Reimplemented in IntVar.
◆ BaseName()
|
virtualinherited |
Returns a base name for automatic naming.
Reimplemented in BooleanVar.
◆ Bound()
|
inlinevirtualinherited |
Returns true if the min and the max of the expression are equal.
Reimplemented in BooleanVar.
Definition at line 3987 of file constraint_solver.h.
◆ CastToVar()
|
virtual |
◆ DebugString()
|
inlineoverridevirtualinherited |
Reimplemented from BaseObject.
Reimplemented in GlobalVehicleBreaksConstraint, BooleanVar, LightIntIntFunctionElementCt< F >, LightIntFunctionElementCt< F >, Pack, Assignment, SequenceVar, and Constraint.
Definition at line 3267 of file constraint_solver.h.
◆ EnqueueAll()
|
inherited |
◆ EnqueueDelayedDemon()
|
inlineinherited |
This method pushes the demon onto the propagation queue.
It will be processed directly if the queue is empty. It will be enqueued according to its priority otherwise.
Definition at line 3287 of file constraint_solver.h.
◆ EnqueueVar()
|
inlineinherited |
Definition at line 3288 of file constraint_solver.h.
◆ ExecuteAll()
|
inherited |
◆ FreezeQueue()
|
inlineinherited |
This method freezes the propagation queue.
It is useful when you need to apply multiple modifications at once.
Definition at line 3278 of file constraint_solver.h.
◆ HasName()
|
inherited |
Returns whether the object has been named or not.
◆ IsVar()
|
inlinevirtualinherited |
Returns true if the expression is indeed a variable.
Reimplemented in IntVar.
Definition at line 3990 of file constraint_solver.h.
◆ Max()
|
pure virtualinherited |
Implemented in BooleanVar.
◆ Min()
|
pure virtualinherited |
Implemented in BooleanVar.
◆ name()
|
virtualinherited |
Object naming.
◆ Range()
|
inlinevirtualinherited |
By default calls Min() and Max(), but can be redefined when Min and Max code can be factorized.
Definition at line 3973 of file constraint_solver.h.
◆ reset_action_on_fail()
|
inlineinherited |
This method clears the failure callback.
Definition at line 3301 of file constraint_solver.h.
◆ set_action_on_fail()
|
inlineinherited |
Definition at line 3295 of file constraint_solver.h.
◆ set_name()
|
inherited |
◆ set_variable_to_clean_on_fail()
|
inlineinherited |
Shortcut for variable cleaner.
Definition at line 3304 of file constraint_solver.h.
◆ SetMax()
|
pure virtualinherited |
Implemented in BooleanVar.
◆ SetMin()
|
pure virtualinherited |
Implemented in BooleanVar.
◆ SetRange()
|
inlinevirtualinherited |
This method sets both the min and the max of the expression.
Reimplemented in BooleanVar.
Definition at line 3978 of file constraint_solver.h.
◆ SetValue()
|
inlinevirtualinherited |
This method sets the value of the expression.
Definition at line 3984 of file constraint_solver.h.
◆ solver()
|
inlineinherited |
Definition at line 3274 of file constraint_solver.h.
◆ UnfreezeQueue()
|
inlineinherited |
This method unfreezes the propagation queue.
All modifications that happened when the queue was frozen will be processed.
Definition at line 3282 of file constraint_solver.h.
◆ Var()
◆ VarWithName()
|
inherited |
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().
◆ WhenRange() [1/3]
|
pure virtualinherited |
Attach a demon that will watch the min or the max of the expression.
Implemented in BooleanVar.
◆ WhenRange() [2/3]
|
inlineinherited |
Attach a demon that will watch the min or the max of the expression.
Definition at line 4010 of file constraint_solver.h.
◆ WhenRange() [3/3]
|
inlineinherited |
Attach a demon that will watch the min or the max of the expression.
Definition at line 4004 of file constraint_solver.h.
The documentation for this class was generated from the following file: