Generated on Sun Feb 17 15:25:04 2019 for Gecode by doxygen 1.6.3

Gecode::TernaryPropagator< View, pc > Class Template Reference
[Propagator patterns]

Ternary propagator. More...

#include <pattern.hpp>

List of all members.

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

template<class View , PropCond pc>
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.

template<class View, PropCond pc>
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.

template<class View, PropCond pc>
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

template<class View , PropCond pc>
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.

template<class View , PropCond pc>
void Gecode::TernaryPropagator< View, pc >::reschedule ( Space home  )  [inline, virtual]

Schedule function.

Implements Gecode::Propagator.

Definition at line 449 of file pattern.hpp.

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 459 of file pattern.hpp.


Member Data Documentation

template<class View, PropCond pc>
View Gecode::TernaryPropagator< View, pc >::x0 [protected]

Three views.

Definition at line 116 of file pattern.hpp.

template<class View, PropCond pc>
View Gecode::TernaryPropagator< View, pc >::x1 [protected]

Definition at line 116 of file pattern.hpp.

template<class View, PropCond pc>
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: