Gecode::Int::Element::View< VA, VB, VC, pc_ac > Class Template Reference
#include <element.hh>
Inherits Gecode::Propagator.
Inherited by Gecode::Int::Element::ViewBnd< VA, VB, VC >, and Gecode::Int::Element::ViewDom< VA, VB, VC >.
Detailed Description
template<class VA, class VB, class VC, PropCond pc_ac>
class Gecode::Int::Element::View< VA, VB, VC, pc_ac >
Base-class for element propagator for array of views.
Definition at line 121 of file element.hh.
Public Member Functions | |
virtual PropCost | cost (ModEventDelta med) 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< VA > *iv, int n, VB x0, VC x1) | |
Constructor for creation. | |
Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m, const Support::Symbol &name) const |
Specification for this propagator. | |
Protected Attributes | |
IdxView< VA > * | iv |
Current index-view map. | |
int | n |
Number of elements in index-view map. | |
VB | x0 |
View for index. | |
VC | x1 |
View for result. |
Constructor & Destructor Documentation
template<class VA, class VB, class VC, PropCond pc_ac>
Gecode::Int::Element::View< VA, VB, VC, pc_ac >::View | ( | Space * | home, | |
bool | share, | |||
View< VA, VB, VC, pc_ac > & | p | |||
) | [inline, protected] |
template<class VA, class VB, class VC, PropCond pc_ac>
Gecode::Int::Element::View< VA, VB, VC, pc_ac >::View | ( | Space * | home, | |
IdxView< VA > * | iv, | |||
int | n, | |||
VB | x0, | |||
VC | x1 | |||
) | [inline, protected] |
Member Function Documentation
template<class VA, class VB, class VC, PropCond pc_ac>
Reflection::ActorSpec Gecode::Int::Element::View< VA, VB, VC, pc_ac >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m, | |||
const Support::Symbol & | name | |||
) | const [inline, protected] |
template<class VA, class VB, class VC, PropCond pc_ac>
PropCost Gecode::Int::Element::View< VA, VB, VC, pc_ac >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function.
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Element::ViewDom< VA, VB, VC >.
template<class VA, class VB, class VC, PropCond pc_ac>
size_t Gecode::Int::Element::View< VA, VB, VC, pc_ac >::dispose | ( | Space * | home | ) | [inline, virtual] |
Member Data Documentation
template<class VA, class VB, class VC, PropCond pc_ac>
IdxView<VA>* Gecode::Int::Element::View< VA, VB, VC, pc_ac >::iv [protected] |
template<class VA, class VB, class VC, PropCond pc_ac>
int Gecode::Int::Element::View< VA, VB, VC, pc_ac >::n [protected] |
template<class VA, class VB, class VC, PropCond pc_ac>
VB Gecode::Int::Element::View< VA, VB, VC, pc_ac >::x0 [protected] |
template<class VA, class VB, class VC, PropCond pc_ac>
VC Gecode::Int::Element::View< VA, VB, VC, pc_ac >::x1 [protected] |
The documentation for this class was generated from the following files:
- gecode/int/element.hh (Revision: 7285)
- gecode/int/element/view.icc (Revision: 7288)