Gecode::TernaryPropagator< View, pc > Class Template Reference
[Propagator patterns]
Ternary propagator. More...
#include <pattern.hpp>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low ternary). | |
virtual void | reschedule (Space &home) |
Schedule function. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Protected Member Functions | |
TernaryPropagator (Space &home, TernaryPropagator &p) | |
Constructor for cloning p. | |
TernaryPropagator (Home home, View x0, View x1, View x2) | |
Constructor for creation. | |
TernaryPropagator (Space &home, 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 113 of file pattern.hpp.
Constructor & Destructor Documentation
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Space & | home, | |
TernaryPropagator< View, pc > & | p | |||
) | [inline, protected] |
Constructor for cloning p.
Definition at line 424 of file pattern.hpp.
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Home | home, | |
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, protected] |
Constructor for creation.
Definition at line 412 of file pattern.hpp.
Gecode::TernaryPropagator< View, pc >::TernaryPropagator | ( | Space & | home, | |
Propagator & | p, | |||
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, protected] |
Constructor for rewriting p during cloning.
Definition at line 434 of file pattern.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 443 of file pattern.hpp.
void Gecode::TernaryPropagator< View, pc >::reschedule | ( | Space & | home | ) | [inline, virtual] |
size_t Gecode::TernaryPropagator< View, pc >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 459 of file pattern.hpp.
Member Data Documentation
View Gecode::TernaryPropagator< View, pc >::x0 [protected] |
Three views.
Definition at line 116 of file pattern.hpp.
View Gecode::TernaryPropagator< View, pc >::x1 [protected] |
Definition at line 116 of file pattern.hpp.
View Gecode::TernaryPropagator< View, pc >::x2 [protected] |
Definition at line 116 of file pattern.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/propagator/pattern.hpp