C++ Reference: class IntVar
Note: This documentation is automatically generated.
The class IntVar is a subset of IntExpr. In addition to the IntExpr protocol, it offers persistence, removing values from the domains, and a finer model for events.Method | |
---|---|
Accept | Return type: Arguments: Accepts the given visitor. |
Contains | Return type: Arguments: This method returns whether the value 'v' is in the domain of the variable. |
index | Return type: Returns the index of the variable. |
IntVar | Return type: Arguments: |
IntVar | Arguments: |
~IntVar | |
IsDifferent | Return type: Arguments: |
IsEqual | Return type: Arguments: IsEqual |
IsGreaterOrEqual | Return type: Arguments: |
IsLessOrEqual | Return type: Arguments: |
IsVar | Return type: |
MakeDomainIterator | Return type: Arguments: Creates a domain iterator. When 'reversible' is false, the returned object is created on the normal C++ heap and the solver does NOT take ownership of the object. |
MakeHoleIterator | Return type: Arguments: Creates a hole iterator. When 'reversible' is false, the returned object is created on the normal C++ heap and the solver does NOT take ownership of the object. |
OldMax | Return type: Returns the previous max. |
OldMin | Return type: Returns the previous min. |
RemoveInterval | Return type: Arguments: This method removes the interval 'l' .. 'u' from the domain of the variable. It assumes that 'l' <= 'u'. |
RemoveValue | Return type: Arguments: This method removes the value 'v' from the domain of the variable. |
RemoveValues | Return type: Arguments: This method remove the values from the domain of the variable. |
SetValues | Return type: Arguments: This method intersects the current domain with the values in the array. |
Size | Return type: This method returns the number of values in the domain of the variable. |
Value | Return type: This method returns the value of the variable. This method checks before that the variable is bound. |
Var | Return type: |
VarType | Return type: |
WhenBound | Return type: Arguments: This method attaches a demon that will be awakened when the variable is bound. |
WhenBound | Return type: Arguments: This method attaches a closure that will be awakened when the variable is bound. |
WhenBound | Return type: Arguments: This method attaches an action that will be awakened when the variable is bound. |
WhenDomain | Return type: Arguments: This method attaches a demon that will watch any domain modification of the domain of the variable. |
WhenDomain | Return type: Arguments: This method attaches a closure that will watch any domain modification of the domain of the variable. |
WhenDomain | Return type: Arguments: This method attaches an action that will watch any domain modification of the domain of the variable. |