Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 > Class Template Reference
[Propagator patterns]
Inherits Gecode::Propagator.
Detailed Description
template<class View0, PropCond pc0, class View1, PropCond pc1>
class Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >
Inhomogeneous binary propagator.
Stores two views of type View0 and View1 with propagation conditions pc0 and pc1.
Definition at line 181 of file propagator.icc.
Public Member Functions | |
virtual PropCost | cost (void) const |
Cost function (defined as PC_BINARY_LO). | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Protected Member Functions | |
InhomBinaryPropagator (Space *home, bool, InhomBinaryPropagator &) | |
Constructor for cloning. | |
InhomBinaryPropagator (Space *home, View0, View1, bool=false) | |
Constructor for creation. | |
InhomBinaryPropagator (Space *home, bool share, Propagator &p, View0 x0, View1 x1) | |
Constructor for rewriting p during cloning. | |
Protected Attributes | |
View0 | x0 |
View1 | x1 |
Constructor & Destructor Documentation
template<class View0, PropCond pc0, class View1, PropCond pc1>
Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >::InhomBinaryPropagator | ( | Space * | home, | |
bool | , | |||
InhomBinaryPropagator< View0, pc0, View1, pc1 > & | ||||
) | [protected] |
Constructor for cloning.
template<class View0, PropCond pc0, class View1, PropCond pc1>
Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >::InhomBinaryPropagator | ( | Space * | home, | |
View0 | , | |||
View1 | , | |||
bool | = false | |||
) | [protected] |
template<class View0, PropCond pc0, class View1, PropCond pc1>
Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >::InhomBinaryPropagator | ( | Space * | home, | |
bool | share, | |||
Propagator & | p, | |||
View0 | x0, | |||
View1 | x1 | |||
) | [inline, protected] |
Member Function Documentation
template<class View0, PropCond pc0, class View1, PropCond pc1>
PropCost Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >::cost | ( | void | ) | const [virtual] |
Cost function (defined as PC_BINARY_LO).
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Rel::EqDom< View0, View1 >.
Definition at line 551 of file propagator.icc.
template<class View0, PropCond pc0, class View1, PropCond pc1>
size_t Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >::dispose | ( | Space * | home | ) | [virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 557 of file propagator.icc.
Member Data Documentation
template<class View0, PropCond pc0, class View1, PropCond pc1>
View0 Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >::x0 [protected] |
Definition at line 183 of file propagator.icc.
template<class View0, PropCond pc0, class View1, PropCond pc1>
View1 Gecode::InhomBinaryPropagator< View0, pc0, View1, pc1 >::x1 [protected] |
Definition at line 184 of file propagator.icc.
The documentation for this class was generated from the following file:
- gecode/kernel/propagator.icc (Revision: 3246)