Gecode::BoolVar Class Reference
[Integer variables]
Inherits Gecode::IntVar.
Detailed Description
Boolean integer variables.
Definition at line 538 of file var.icc.
Constructors and initialization | |
BoolVar (void) | |
Default constructor. | |
BoolVar (const Int::BoolView &x) | |
Initialize from Boolean View x. | |
BoolVar (Space *home, int min, int max) | |
Initialize Boolean variable with range domain. | |
BoolVar (const IntVar &x) | |
Initialize Boolean variable from integer variable. | |
Cloning | |
void | update (Space *home, bool share, BoolVar &x) |
Update this variable to be a clone of variable x. |
Constructor & Destructor Documentation
|
Default constructor.
|
|
Initialize from Boolean View x.
|
|
Initialize Boolean variable with range domain. The variable is created with a domain ranging from min to max. The following exceptions might be thrown:
|
|
Initialize Boolean variable from integer variable. If x.min() is less than 0 or x.max() is greater than 1, an exception of type Gecode::Int::VariableOutOfDomain is thrown. |
Member Function Documentation
|
Update this variable to be a clone of variable x.
|
The documentation for this class was generated from the following files:
- gecode/int/var.icc (Revision: 3686)
- gecode/int/var/bool.icc (Revision: 2418)