|
| | IntVar (Solver *s) |
| | IntVar (Solver *s, const std::string &name) |
| | IntVar (const IntVar &)=delete |
| IntVar & | operator= (const IntVar &)=delete |
| | ~IntVar () override |
| bool | IsVar () const override |
| | Returns true if the expression is indeed a variable.
|
| IntVar * | Var () override |
| | Creates a variable from the expression.
|
| virtual int64_t | Value () const =0 |
| virtual void | RemoveValue (int64_t v)=0 |
| | This method removes the value 'v' from the domain of the variable.
|
| virtual void | RemoveInterval (int64_t l, int64_t u)=0 |
| virtual void | RemoveValues (const std::vector< int64_t > &values) |
| | This method remove the values from the domain of the variable.
|
| virtual void | SetValues (const std::vector< int64_t > &values) |
| | This method intersects the current domain with the values in the array.
|
| virtual void | WhenBound (Demon *d)=0 |
| void | WhenBound (Solver::Closure closure) |
| void | WhenBound (Solver::Action action) |
| virtual void | WhenDomain (Demon *d)=0 |
| void | WhenDomain (Solver::Closure closure) |
| void | WhenDomain (Solver::Action action) |
| virtual uint64_t | Size () const =0 |
| | This method returns the number of values in the domain of the variable.
|
| virtual bool | Contains (int64_t v) const =0 |
| virtual IntVarIterator * | MakeHoleIterator (bool reversible) const =0 |
| virtual IntVarIterator * | MakeDomainIterator (bool reversible) const =0 |
| virtual int64_t | OldMin () const =0 |
| | Returns the previous min.
|
| virtual int64_t | OldMax () const =0 |
| | Returns the previous max.
|
| virtual int | VarType () const |
| void | Accept (ModelVisitor *visitor) const override |
| | Accepts the given visitor.
|
| virtual IntVar * | IsEqual (int64_t constant)=0 |
| | IsEqual.
|
| virtual IntVar * | IsDifferent (int64_t constant)=0 |
| virtual IntVar * | IsGreaterOrEqual (int64_t constant)=0 |
| virtual IntVar * | IsLessOrEqual (int64_t constant)=0 |
| int | index () const |
| | Returns the index of the variable.
|
| Public Member Functions inherited from operations_research::IntExpr |
| | IntExpr (Solver *const s) |
| | IntExpr (const IntExpr &)=delete |
| IntExpr & | operator= (const IntExpr &)=delete |
| | ~IntExpr () override |
| 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) |
| virtual void | SetRange (int64_t l, int64_t u) |
| | This method sets both the min and the max of the expression.
|
| virtual void | SetValue (int64_t v) |
| | This method sets the value of the expression.
|
| virtual bool | Bound () const |
| | Returns true if the min and the max of the expression are equal.
|
| IntVar * | VarWithName (const std::string &name) |
| virtual void | WhenRange (Demon *d)=0 |
| | Attach a demon that will watch the min or the max of the expression.
|
| void | WhenRange (Solver::Closure closure) |
| | Attach a demon that will watch the min or the max of the expression.
|
| void | WhenRange (Solver::Action action) |
| | Attach a demon that will watch the min or the max of the expression.
|
| Public Member Functions inherited from operations_research::PropagationBaseObject |
| | PropagationBaseObject (Solver *const s) |
| | PropagationBaseObject (const PropagationBaseObject &)=delete |
| PropagationBaseObject & | operator= (const PropagationBaseObject &)=delete |
| | ~PropagationBaseObject () override |
| std::string | DebugString () const override |
| Solver * | solver () const |
| void | FreezeQueue () |
| void | UnfreezeQueue () |
| void | EnqueueDelayedDemon (Demon *const d) |
| 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.
|
| void | set_variable_to_clean_on_fail (IntVar *v) |
| | Shortcut for variable cleaner.
|
| virtual std::string | name () const |
| | Object naming.
|
| void | set_name (absl::string_view name) |
| bool | HasName () const |
| | Returns whether the object has been named or not.
|
| virtual std::string | BaseName () const |
| | Returns a base name for automatic naming.
|
| Public Member Functions inherited from operations_research::BaseObject |
| | BaseObject () |
| | BaseObject (const BaseObject &)=delete |
| BaseObject & | operator= (const BaseObject &)=delete |
| virtual | ~BaseObject ()=default |