Gecode::ViewTuple< View, n > Class Template Reference
[Programming views for variables]
List of all members.Detailed Description
template<class View, unsigned int n>
class Gecode::ViewTuple< View, n >
Tuple of views.
Note that when tuples of views are stored inside ViewArrays, then operations that check for sharing or equality on these arrays do not work like expected.
Definition at line 237 of file view.icc.
Initialization | |
ViewTuple (void) | |
Default constructor. | |
Component access | |
View & | operator[] (unsigned int i) |
Return i-th component of tuple. | |
const View & | operator[] (unsigned int i) const |
Return i-th component of tuple. | |
Dependencies | |
void | subscribe (Space *, Propagator *p, PropCond pc, bool process=true) |
Subscribe propagator p with propagation condition pc to variable. | |
void | cancel (Space *home, Propagator *p, PropCond pc) |
Cancel subscription of propagator p with propagation condition pc to view. | |
Cloning | |
void | update (Space *home, bool share, ViewTuple &xs) |
Update this view to be a clone of view tuple xs. | |
View comparison | |
bool | same (const ViewTuple< View, n > &x, const ViewTuple< View, n > &y) |
Test whether tuples x and y are the same. | |
bool | before (const ViewTuple< View, n > &x, const ViewTuple< View, n > &y) |
Test whether tuple x is before y (arbitrary order). |
Constructor & Destructor Documentation
|
Default constructor.
|
Member Function Documentation
|
Return i-th component of tuple.
|
|
Return i-th component of tuple.
|
|
Subscribe propagator p with propagation condition pc to variable. In case process is false, the propagator is just subscribed but not processed for execution (this must be used when creating subscriptions during propagation). |
|
Cancel subscription of propagator p with propagation condition pc to view.
|
|
Update this view to be a clone of view tuple xs.
|
Friends And Related Function Documentation
|
Test whether tuples x and y are the same.
|
|
Test whether tuple x is before y (arbitrary order).
|
The documentation for this class was generated from the following file:
- gecode/kernel/view.icc (Revision: 3559)