Generated on Fri Oct 19 11:26:15 2018 for Gecode by doxygen 1.6.3

Gecode::Int::Rel::EqDom< View0, View1 > Class Template Reference
[Integer propagators]

Binary domain consistent equality propagator. More...

#include <rel.hh>

List of all members.

Public Member Functions

 EqDom (Home home, View0 x0, View1 x1)
 Constructor for posting.
 EqDom (Space &home, Propagator &p, View0 x0, View1 x1)
 Constructor for rewriting p during cloning.
virtual Actorcopy (Space &home)
 Copy propagator during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Home home, View0 x0, View1 x1)
 Post domain consistent propagator $ x_0 = x_1$.

Protected Member Functions

 EqDom (Space &home, EqDom< View0, View1 > &p)
 Constructor for cloning p.

Detailed Description

template<class View0, class View1>
class Gecode::Int::Rel::EqDom< View0, View1 >

Binary domain consistent equality propagator.

Uses staging by first performing bounds propagation and only then domain propagation.

Requires

 #include <gecode/int/rel.hh> 

Definition at line 67 of file rel.hh.


Constructor & Destructor Documentation

template<class View0 , class View1 >
Gecode::Int::Rel::EqDom< View0, View1 >::EqDom ( Space home,
EqDom< View0, View1 > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 194 of file eq.hpp.

template<class View0 , class View1 >
Gecode::Int::Rel::EqDom< View0, View1 >::EqDom ( Home  home,
View0  x0,
View1  x1 
) [inline]

Constructor for posting.

Definition at line 171 of file eq.hpp.

template<class View0 , class View1 >
Gecode::Int::Rel::EqDom< View0, View1 >::EqDom ( Space home,
Propagator p,
View0  x0,
View1  x1 
) [inline]

Constructor for rewriting p during cloning.

Definition at line 199 of file eq.hpp.


Member Function Documentation

template<class View0 , class View1 >
Actor * Gecode::Int::Rel::EqDom< View0, View1 >::copy ( Space home  )  [inline, virtual]

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 206 of file eq.hpp.

template<class View0 , class View1 >
PropCost Gecode::Int::Rel::EqDom< View0, View1 >::cost ( const Space home,
const ModEventDelta med 
) const [inline, virtual]

Cost function.

If a view has been assigned, the cost is low unary. If in stage for bounds propagation, the cost is low binary. Otherwise it is high binary.

Reimplemented from Gecode::MixBinaryPropagator< View0, PC_INT_DOM, View1, PC_INT_DOM >.

Definition at line 212 of file eq.hpp.

template<class View0 , class View1 >
ExecStatus Gecode::Int::Rel::EqDom< View0, View1 >::propagate ( Space home,
const ModEventDelta med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 223 of file eq.hpp.

template<class View0 , class View1 >
ExecStatus Gecode::Int::Rel::EqDom< View0, View1 >::post ( Home  home,
View0  x0,
View1  x1 
) [inline, static]

Post domain consistent propagator $ x_0 = x_1$.

Definition at line 176 of file eq.hpp.


The documentation for this class was generated from the following files: