Generated on Sat Aug 25 2012 15:53:13 for Gecode by doxygen 1.7.5
Gecode::Int::Rel::EqDom Class Reference

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, bool share, Propagator &p, View0 x0, View1 x1)
 Constructor for rewriting p during cloning.
virtual Actorcopy (Space &home, bool share)
 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, bool share, EqDom< View0, View1 > &p)
 Constructor for cloning p.

Detailed Description

Binary domain consistent equality propagator.

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

Requires

 #include <gecode/int/rel.hh> 

Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 138 of file eq.hpp.

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

Constructor for posting.

Definition at line 115 of file eq.hpp.

Gecode::Int::Rel::EqDom::EqDom ( Space home,
bool  share,
Propagator p,
View0  x0,
View1  x1 
) [inline]

Constructor for rewriting p during cloning.

Definition at line 143 of file eq.hpp.


Member Function Documentation

Actor * Gecode::Int::Rel::EqDom::copy ( Space home,
bool  share 
) [virtual]

Copy propagator during cloning.

Definition at line 150 of file eq.hpp.

PropCost Gecode::Int::Rel::EqDom::cost ( const Space home,
const ModEventDelta med 
) const [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 156 of file eq.hpp.

ExecStatus Gecode::Int::Rel::EqDom::propagate ( Space home,
const ModEventDelta med 
) [virtual]

Perform propagation.

Definition at line 167 of file eq.hpp.

ExecStatus Gecode::Int::Rel::EqDom::post ( Home  home,
View0  x0,
View1  x1 
) [static]

Post domain consistent propagator $ x_0 = x_1$.

Definition at line 120 of file eq.hpp.


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