Gecode::TernaryPropagator< View, pc > Class Template Reference
[Propagator patterns]
Inherits Gecode::Propagator.
Detailed Description
template<class View, PropCond pc>
class Gecode::TernaryPropagator< View, pc >
Ternary propagator.
Stores three views of type View with propagation condition pc.
If the propagation condition pc has the value PC_GEN_NONE, no subscriptions are created.
Definition at line 152 of file propagator.icc.
Public Member Functions | |
virtual PropCost | cost (ModEventDelta med) const |
Cost function (defined as PC_TERNARY_LO). | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m, const Support::Symbol &name) const |
Return specification given a variable map m and a name. | |
Protected Member Functions | |
TernaryPropagator (Space *home, bool share, TernaryPropagator &p) | |
Constructor for cloning p. | |
TernaryPropagator (Space *home, View x0, View x1, View x2) | |
Constructor for creation. | |
TernaryPropagator (Space *home, bool share, Propagator &p, View x0, View x1, View x2) | |
Constructor for rewriting p during cloning. | |
Protected Attributes | |
View | x0 |
Three views. | |
View | x1 |
View | x2 |
Constructor & Destructor Documentation
template<class View, PropCond pc>
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Space * | home, | |
bool | share, | |||
TernaryPropagator< View, pc > & | p | |||
) | [inline, protected] |
template<class View, PropCond pc>
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Space * | home, | |
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, protected] |
template<class View, PropCond pc>
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Space * | home, | |
bool | share, | |||
Propagator & | p, | |||
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, protected] |
Member Function Documentation
template<class View, PropCond pc>
PropCost Gecode::TernaryPropagator< View, pc >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function (defined as PC_TERNARY_LO).
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Arithmetic::MultDom< View >.
Definition at line 511 of file propagator.icc.
template<class View, PropCond pc>
size_t Gecode::TernaryPropagator< View, pc >::dispose | ( | Space * | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 517 of file propagator.icc.
template<class View, PropCond pc>
Reflection::ActorSpec Gecode::TernaryPropagator< View, pc >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m, | |||
const Support::Symbol & | name | |||
) | const [inline] |
Return specification given a variable map m and a name.
Definition at line 529 of file propagator.icc.
Member Data Documentation
template<class View, PropCond pc>
View Gecode::TernaryPropagator< View, pc >::x0 [protected] |
template<class View, PropCond pc>
View Gecode::TernaryPropagator< View, pc >::x1 [protected] |
Definition at line 155 of file propagator.icc.
template<class View, PropCond pc>
View Gecode::TernaryPropagator< View, pc >::x2 [protected] |
Definition at line 155 of file propagator.icc.
The documentation for this class was generated from the following file:
- gecode/kernel/propagator.icc (Revision: 5993)