Gecode::TernaryPropagator< View, pc > Class Template Reference
[Propagator patterns]
Ternary propagator. More...
#include <propagator.hpp>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low ternary). | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Protected Member Functions | |
TernaryPropagator (Space &home, bool share, TernaryPropagator &p) | |
Constructor for cloning p. | |
TernaryPropagator (Home 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 |
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 115 of file propagator.hpp.
Constructor & Destructor Documentation
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Space & | home, | |
bool | share, | |||
TernaryPropagator< View, pc > & | p | |||
) | [inline, protected] |
Constructor for cloning p.
Definition at line 402 of file propagator.hpp.
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Home | home, | |
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, protected] |
Constructor for creation.
Definition at line 390 of file propagator.hpp.
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Space & | home, | |
bool | share, | |||
Propagator & | p, | |||
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, protected] |
Constructor for rewriting p during cloning.
Definition at line 412 of file propagator.hpp.
Member Function Documentation
PropCost Gecode::TernaryPropagator< View, pc >::cost | ( | const Space & | home, | |
const ModEventDelta & | med | |||
) | const [inline, virtual] |
Cost function (defined as low ternary).
Implements Gecode::Propagator.
Reimplemented in Gecode::Int::Arithmetic::MaxDom< View >, and Gecode::Int::Arithmetic::MultDom.
Definition at line 421 of file propagator.hpp.
size_t Gecode::TernaryPropagator< View, pc >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 427 of file propagator.hpp.
Member Data Documentation
View Gecode::TernaryPropagator< View, pc >::x0 [protected] |
Three views.
Definition at line 118 of file propagator.hpp.
View Gecode::TernaryPropagator< View, pc >::x1 [protected] |
Definition at line 118 of file propagator.hpp.
View Gecode::TernaryPropagator< View, pc >::x2 [protected] |
Definition at line 118 of file propagator.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/propagator.hpp (Revision: 9878)