Gecode::OpenBoolVarList Class Reference
Open list of Boolean variables. More...
#include <gecode/int.hh>
Public Member Functions | |
| OpenBoolVarList (void) | |
| Construct an uninitialized list. | |
| OpenBoolVarList (const OpenVarList< BoolVar > &x) | |
| Share a Boolean list constructed through a variable factory. | |
| OpenBoolVarList (Space &home, int max=Int::Limits::max) | |
| Construct a list with maximal length max and domains 0..1. | |
| OpenBoolVarList (Space &home, Transition t, int max=Int::Limits::max) | |
| Construct a list with domains 0..1 and transition function t. | |
| Public Member Functions inherited from Gecode::OpenVarList< BoolVar > | |
| void | update (Space &home, OpenVarList< BoolVar > &s) |
| Update during cloning. | |
| int | known_length (void) const |
| Return the number of constructed positions (their values may be unassigned). | |
| BoolVar | operator[] (int i) const |
| Return variable at position i, where 0 <= i < known_length(). | |
| IntVar | length (void) const |
| Return the eventual-length variable. | |
| void | append (Space &home, BoolVar x) |
| Append variable x. | |
| void | materialize (Space &home, int n) |
| Materialize the first n variables. | |
| BoolVar | get (Space &home, int i) |
| Require and return the variable at position i. | |
| void | close (Space &home) |
| Close the list at its materialized length. | |
| void | subscribe (Space &home, Propagator &p) |
| Subscribe p to the addition of positions. | |
| void | cancel (Space &home, Propagator &p) |
| Cancel the subscription of p to the addition of positions. | |
| void | reschedule (Space &home, Propagator &p) |
| Reschedule p for the addition of positions. | |
| Public Member Functions inherited from Gecode::LocalHandle | |
| LocalHandle & | operator= (const LocalHandle &lh) |
| Assignment operator. | |
| void | update (Space &home, LocalHandle &lh) |
| Updating during cloning. | |
| ~LocalHandle (void) | |
| Destructor. | |
Additional Inherited Members | |
| Public Types inherited from Gecode::OpenVarList< BoolVar > | |
| typedef std::function< BoolVar(Space &home, int i)> | Factory |
| Function creating the variable at position i in home. | |
| typedef std::function< void(Space &home, OpenVarList< BoolVar > x, int i)> | Transition |
| Function called after materializing position i. | |
| Protected Member Functions inherited from Gecode::LocalHandle | |
| LocalHandle (void) | |
| Create local handle pointing to nullptr object. | |
| LocalHandle (LocalObject *lo) | |
| Create local handle that points to local object lo. | |
| LocalHandle (const LocalHandle &lh) | |
| Copy constructor. | |
| LocalObject * | object (void) const |
| Access to the local object. | |
| void | object (LocalObject *n) |
| Modify local object. | |
Detailed Description
Constructor & Destructor Documentation
◆ OpenBoolVarList() [1/4]
| Gecode::OpenBoolVarList::OpenBoolVarList | ( | void | ) |
Construct an uninitialized list.
◆ OpenBoolVarList() [2/4]
|
inline |
Share a Boolean list constructed through a variable factory.
Definition at line 312 of file open-var-list.hpp.
◆ OpenBoolVarList() [3/4]
| Gecode::OpenBoolVarList::OpenBoolVarList | ( | Space & | home, |
| int | max = Int::Limits::max ) |
Construct a list with maximal length max and domains 0..1.
◆ OpenBoolVarList() [4/4]
| Gecode::OpenBoolVarList::OpenBoolVarList | ( | Space & | home, |
| Transition | t, | ||
| int | max = Int::Limits::max ) |
Construct a list with domains 0..1 and transition function t.
The documentation for this class was generated from the following files:
- gecode/int.hh
- gecode/int/open-var-list.hpp
