Generated on Wed Nov 1 15:05:20 2006 for Gecode by doxygen 1.4.5

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

#include <rel.hh>

Inherits Gecode::InhomBinaryPropagator< View0, PC_INT_DOM, View1, PC_INT_DOM >.

List of all members.


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 57 of file rel.hh.

Public Member Functions

virtual Actorcopy (Space *home, bool share)
 Copy propagator during cloning.
virtual PropCost cost (void) const
 Cost function.
virtual ExecStatus propagate (Space *home)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Space *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.
 EqDom (Space *home, View0 x0, View1 x1)
 Constructor for posting.


Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 117 of file eq.icc.

template<class View0, class View1>
Gecode::Int::Rel::EqDom< View0, View1 >::EqDom Space home,
View0  x0,
View1  x1
[inline, protected]
 

Constructor for posting.

Definition at line 98 of file eq.icc.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 122 of file eq.icc.

template<class View0, class View1>
PropCost Gecode::Int::Rel::EqDom< View0, View1 >::cost void   )  const [virtual]
 

Cost function.

If a view has been assigned, the cost is PC_UNARY_LO. If in stage for bounds propagation, the cost is PC_BINARY_LO. Otherwise it is PC_BINARY_HI.

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

Definition at line 129 of file eq.icc.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 139 of file eq.icc.

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

Post domain-consistent propagator $ x_0 = x_1$.

Definition at line 103 of file eq.icc.


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