Gecode::OpenIntVarList Class Reference
Open list of integer variables. More...
#include <gecode/int.hh>
Public Types | |
| typedef std::function< IntSet(int i)> | Domain |
| Function returning the domain for position i. | |
| Public Types inherited from Gecode::OpenVarList< IntVar > | |
| typedef std::function< IntVar(Space &home, int i)> | Factory |
| Function creating the variable at position i in home. | |
| typedef std::function< void(Space &home, OpenVarList< IntVar > x, int i)> | Transition |
| Function called after materializing position i. | |
Public Member Functions | |
| OpenIntVarList (void) | |
| Construct an uninitialized list. | |
| OpenIntVarList (const OpenVarList< IntVar > &x) | |
| Share an integer list constructed through a variable factory. | |
| OpenIntVarList (Space &home, int max=Int::Limits::max) | |
| Construct a list with maximal length max and full domains. | |
| OpenIntVarList (Space &home, const IntSet &d, int max=Int::Limits::max) | |
| Construct a list using domain d for every position. | |
| OpenIntVarList (Space &home, const IntSet &d, Transition t, int max=Int::Limits::max) | |
| Construct a list using domain d and transition function t. | |
| OpenIntVarList (Space &home, Domain d, int max=Int::Limits::max) | |
| Construct a list using d to create each position. | |
| OpenIntVarList (Space &home, Domain d, Transition t, int max=Int::Limits::max) | |
| Construct a list using d and transition function t. | |
| Public Member Functions inherited from Gecode::OpenVarList< IntVar > | |
| void | update (Space &home, OpenVarList< IntVar > &s) |
| Update during cloning. | |
| int | known_length (void) const |
| Return the number of constructed positions (their values may be unassigned). | |
| IntVar | 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, IntVar x) |
| Append variable x. | |
| void | materialize (Space &home, int n) |
| Materialize the first n variables. | |
| IntVar | 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 | |
| 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
Member Typedef Documentation
◆ Domain
| typedef std::function<IntSet(int i)> Gecode::OpenIntVarList::Domain |
Constructor & Destructor Documentation
◆ OpenIntVarList() [1/7]
| Gecode::OpenIntVarList::OpenIntVarList | ( | void | ) |
Construct an uninitialized list.
◆ OpenIntVarList() [2/7]
|
inline |
Share an integer list constructed through a variable factory.
Definition at line 308 of file open-var-list.hpp.
◆ OpenIntVarList() [3/7]
| Gecode::OpenIntVarList::OpenIntVarList | ( | Space & | home, |
| int | max = Int::Limits::max ) |
Construct a list with maximal length max and full domains.
◆ OpenIntVarList() [4/7]
| Gecode::OpenIntVarList::OpenIntVarList | ( | Space & | home, |
| const IntSet & | d, | ||
| int | max = Int::Limits::max ) |
Construct a list using domain d for every position.
◆ OpenIntVarList() [5/7]
| Gecode::OpenIntVarList::OpenIntVarList | ( | Space & | home, |
| const IntSet & | d, | ||
| Transition | t, | ||
| int | max = Int::Limits::max ) |
Construct a list using domain d and transition function t.
◆ OpenIntVarList() [6/7]
| Gecode::OpenIntVarList::OpenIntVarList | ( | Space & | home, |
| Domain | d, | ||
| int | max = Int::Limits::max ) |
Construct a list using d to create each position.
◆ OpenIntVarList() [7/7]
| Gecode::OpenIntVarList::OpenIntVarList | ( | Space & | home, |
| Domain | d, | ||
| Transition | t, | ||
| int | max = Int::Limits::max ) |
Construct a list using d and transition function t.
The documentation for this class was generated from the following files:
- gecode/int.hh
- gecode/int/open-var-list.hpp
