View interface to a space-local list with an open length. More...
#include <gecode/int.hh>
Public Member Functions | |
| OpenViewList (void) | |
| Construct an uninitialized list. | |
| OpenViewList (const OpenVarList< Var > &list) | |
| Share the source of the model list list. | |
| void | update (Space &home, OpenViewList< View > &s) |
| Update during cloning. | |
| int | known_length (void) const |
| Return the number of constructed positions. | |
| View | operator[] (int i) const |
| Return the view at constructed position i. | |
| Int::IntView | length (void) const |
| Return the eventual-length view. | |
| void | materialize (Space &home, int n) |
| Require and construct at least the first n positions. | |
| void | subscribe (Space &home, Propagator &p) |
| Subscribe p to construction of positions. | |
| void | cancel (Space &home, Propagator &p) |
| Cancel the subscription of p to construction of positions. | |
| void | reschedule (Space &home, Propagator &p) |
| Reschedule p for construction 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
class Gecode::OpenViewList< View >
View interface to a space-local list with an open length.
Shares the model list and its later additions. Indexed access returns views by value, which are valid across growth. Cloning preserves sharing within the clone with independent mutable state.
View must be constructible from its VarType. Int::MinusView is supported through Int::IntView. The length view is always Int::IntView.
Constructor & Destructor Documentation
◆ OpenViewList() [1/2]
| Gecode::OpenViewList< View >::OpenViewList | ( | void | ) |
Construct an uninitialized list.
Definition at line 423 of file open-var-list.hpp.
◆ OpenViewList() [2/2]
|
explicit |
Share the source of the model list list.
Definition at line 426 of file open-var-list.hpp.
Member Function Documentation
◆ update()
| void Gecode::OpenViewList< View >::update | ( | Space & | home, |
| OpenViewList< View > & | s ) |
Update during cloning.
Definition at line 431 of file open-var-list.hpp.
◆ known_length()
| int Gecode::OpenViewList< View >::known_length | ( | void | ) | const |
Return the number of constructed positions.
Definition at line 437 of file open-var-list.hpp.
◆ operator[]()
| View Gecode::OpenViewList< View >::operator[] | ( | int | i | ) | const |
Return the view at constructed position i.
Definition at line 443 of file open-var-list.hpp.
◆ length()
| Int::IntView Gecode::OpenViewList< View >::length | ( | void | ) | const |
Return the eventual-length view.
Definition at line 451 of file open-var-list.hpp.
◆ materialize()
| void Gecode::OpenViewList< View >::materialize | ( | Space & | home, |
| int | n ) |
Require and construct at least the first n positions.
Definition at line 457 of file open-var-list.hpp.
◆ subscribe()
| void Gecode::OpenViewList< View >::subscribe | ( | Space & | home, |
| Propagator & | p ) |
Subscribe p to construction of positions.
Definition at line 464 of file open-var-list.hpp.
◆ cancel()
| void Gecode::OpenViewList< View >::cancel | ( | Space & | home, |
| Propagator & | p ) |
Cancel the subscription of p to construction of positions.
Definition at line 470 of file open-var-list.hpp.
◆ reschedule()
| void Gecode::OpenViewList< View >::reschedule | ( | Space & | home, |
| Propagator & | p ) |
Reschedule p for construction of positions.
Definition at line 476 of file open-var-list.hpp.
The documentation for this class was generated from the following files:
- gecode/int.hh
- gecode/int/open-var-list.hpp
