Generated on Mon Aug 25 11:35:52 2008 for Gecode by doxygen 1.5.6

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

#include <rel.hh>

Inherits MixBinaryPropagator< 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 71 of file rel.hh.


Public Member Functions

 EqDom (Space *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 (ModEventDelta med) const
 Cost function.
virtual ExecStatus propagate (Space *home, ModEventDelta med)
 Perform propagation.
virtual Reflection::ActorSpec spec (const Space *home, Reflection::VarMap &m) const
 Specification for this propagator.

Static Public Member Functions

static void post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec)
 Post propagator according to specification.
static Support::Symbol ati (void)
 Mangled propagator name.
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.

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 161 of file eq.icc.

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

Constructor for posting.

Definition at line 138 of file eq.icc.

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

Constructor for rewriting p during cloning.

Definition at line 166 of file eq.icc.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 173 of file eq.icc.

template<class View0, class View1>
PropCost Gecode::Int::Rel::EqDom< View0, View1 >::cost ( ModEventDelta  med  )  const [inline, 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::MixBinaryPropagator< View0, PC_INT_DOM, View1, PC_INT_DOM >.

Definition at line 202 of file eq.icc.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 212 of file eq.icc.

template<class View0, class View1>
Reflection::ActorSpec Gecode::Int::Rel::EqDom< View0, View1 >::spec ( const Space home,
Reflection::VarMap m 
) const [inline, virtual]

Specification for this propagator.

Reimplemented from Gecode::Actor.

Definition at line 185 of file eq.icc.

template<class View0, class View1>
void Gecode::Int::Rel::EqDom< View0, View1 >::post ( Space home,
Reflection::VarMap vars,
const Reflection::ActorSpec spec 
) [inline, static]

Post propagator according to specification.

Definition at line 192 of file eq.icc.

template<class View0, class View1>
Support::Symbol Gecode::Int::Rel::EqDom< View0, View1 >::ati ( void   )  [inline, static]

Mangled propagator name.

Definition at line 179 of file eq.icc.

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

Post domain consistent propagator $ x_0 = x_1$.

Definition at line 143 of file eq.icc.


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