Gecode::Int::Element::ViewDom< ViewA, ViewB > Class Template Reference
[Integer propagators]
#include <element.hh>
Inherits Gecode::Int::Element::View< ViewA, ViewB, PC_INT_DOM >.
Detailed Description
template<class ViewA, class ViewB>
class Gecode::Int::Element::ViewDom< ViewA, ViewB >
Domain-consistent element propagator for array of views.
The propagator uses staging: first it uses bounds-propagation on the array of views and the uses domain-propagation on the array of views.
Requires
#include "gecode/int/element.hh"
Definition at line 165 of file element.hh.
Public Member Functions | |
| virtual Actor * | copy (Space *home, bool share) |
| Perform copying during cloning. | |
| virtual PropCost | cost (void) const |
| Cost function. | |
| virtual ExecStatus | propagate (Space *home) |
| Perform propagation. | |
Static Public Member Functions | |
| static ExecStatus | post (Space *home, IdxView< ViewB > *iv, int n, ViewA x0, ViewB x1) |
Post propagator for . | |
Protected Member Functions | |
| ViewDom (Space *home, bool share, ViewDom &p) | |
| Constructor for cloning p. | |
| ViewDom (Space *home, IdxView< ViewB > *iv, int n, ViewA x0, ViewB x1) | |
| Constructor for creation. | |
Constructor & Destructor Documentation
template<class ViewA, class ViewB>
| Gecode::Int::Element::ViewDom< ViewA, ViewB >::ViewDom | ( | Space * | home, | |
| bool | share, | |||
| ViewDom< ViewA, ViewB > & | p | |||
| ) | [inline, protected] |
template<class ViewA, class ViewB>
| Gecode::Int::Element::ViewDom< ViewA, ViewB >::ViewDom | ( | Space * | home, | |
| IdxView< ViewB > * | iv, | |||
| int | n, | |||
| ViewA | x0, | |||
| ViewB | x1 | |||
| ) | [inline, protected] |
Member Function Documentation
template<class ViewA, class ViewB>
| Actor * Gecode::Int::Element::ViewDom< ViewA, ViewB >::copy | ( | Space * | home, | |
| bool | share | |||
| ) | [virtual] |
template<class ViewA, class ViewB>
| PropCost Gecode::Int::Element::ViewDom< ViewA, ViewB >::cost | ( | void | ) | const [virtual] |
Cost function.
If in stage for bounds-propagation defined as dynamic PC_LINEAR_LO, otherwise as dynamic PC_LINEAR_HI.
Reimplemented from Gecode::Int::Element::View< ViewA, ViewB, PC_INT_DOM >.
template<class ViewA, class ViewB>
| ExecStatus Gecode::Int::Element::ViewDom< ViewA, ViewB >::propagate | ( | Space * | home | ) | [virtual] |
template<class ViewA, class ViewB>
| ExecStatus Gecode::Int::Element::ViewDom< ViewA, ViewB >::post | ( | Space * | home, | |
| IdxView< ViewB > * | iv, | |||
| int | n, | |||
| ViewA | x0, | |||
| ViewB | x1 | |||
| ) | [static] |
The documentation for this class was generated from the following files:
- gecode/int/element.hh (Revision: 3512)
- gecode/int/element/view.icc (Revision: 3512)

.