Gecode::Int::Element::View< ViewA, ViewB, pcb > Class Template Reference
#include <element.hh>
Inherits Gecode::Propagator.
Detailed Description
template<class ViewA, class ViewB, PropCond pcb>
class Gecode::Int::Element::View< ViewA, ViewB, pcb >
Base-class for element propagator for array of views.
Definition at line 104 of file element.hh.
Public Member Functions | |
virtual PropCost | cost (void) const |
Cost function. | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Protected Member Functions | |
View (Space *home, bool share, View &p) | |
Constructor for cloning p. | |
View (Space *home, IdxView< ViewB > *iv, int n, ViewA x0, ViewB x1) | |
Constructor for creation. | |
Protected Attributes | |
ViewA | x0 |
View for index. | |
ViewB | x1 |
View for result. | |
int | n |
Number of elements in index-view map. | |
IdxView< ViewB > * | iv |
Current index-view map. |
Constructor & Destructor Documentation
template<class ViewA, class ViewB, PropCond pcb>
Gecode::Int::Element::View< ViewA, ViewB, pcb >::View | ( | Space * | home, | |
bool | share, | |||
View< ViewA, ViewB, pcb > & | p | |||
) | [inline, protected] |
template<class ViewA, class ViewB, PropCond pcb>
Gecode::Int::Element::View< ViewA, ViewB, pcb >::View | ( | Space * | home, | |
IdxView< ViewB > * | iv, | |||
int | n, | |||
ViewA | x0, | |||
ViewB | x1 | |||
) | [protected] |
Member Function Documentation
template<class ViewA, class ViewB, PropCond pcb>
PropCost Gecode::Int::Element::View< ViewA, ViewB, pcb >::cost | ( | void | ) | const [virtual] |
Cost function.
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Element::ViewDom< ViewA, ViewB >.
template<class ViewA, class ViewB, PropCond pcb>
size_t Gecode::Int::Element::View< ViewA, ViewB, pcb >::dispose | ( | Space * | home | ) | [virtual] |
Member Data Documentation
template<class ViewA, class ViewB, PropCond pcb>
ViewA Gecode::Int::Element::View< ViewA, ViewB, pcb >::x0 [protected] |
template<class ViewA, class ViewB, PropCond pcb>
ViewB Gecode::Int::Element::View< ViewA, ViewB, pcb >::x1 [protected] |
template<class ViewA, class ViewB, PropCond pcb>
int Gecode::Int::Element::View< ViewA, ViewB, pcb >::n [protected] |
template<class ViewA, class ViewB, PropCond pcb>
IdxView<ViewB>* Gecode::Int::Element::View< ViewA, ViewB, pcb >::iv [protected] |
The documentation for this class was generated from the following files:
- gecode/int/element.hh (Revision: 3246)
- gecode/int/element/view.icc (Revision: 3246)