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

n-ary domain consistent equality propagator More...

#include <rel.hh>

List of all members.

Public Member Functions

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, ViewArray< View > &x)
 Post domain consistent propagator $ x_0 = x_1=\ldots =x_{|x|-1}$.

Protected Member Functions

 NaryEqDom (Space &home, bool share, NaryEqDom< View > &p)
 Constructor for cloning p.
 NaryEqDom (Home home, ViewArray< View > &)
 Constructor for posting.

Detailed Description

n-ary 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::NaryEqDom::NaryEqDom ( Space home,
bool  share,
NaryEqDom< View > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 236 of file eq.hpp.

Gecode::Int::Rel::NaryEqDom::NaryEqDom ( Home  home,
ViewArray< View > &  x 
) [inline, protected]

Constructor for posting.

Definition at line 209 of file eq.hpp.


Member Function Documentation

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

Copy propagator during cloning.

Definition at line 241 of file eq.hpp.

PropCost Gecode::Int::Rel::NaryEqDom::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 linear. Otherwise it is high linear.

Reimplemented from Gecode::NaryPropagator< View, PC_INT_DOM >.

Definition at line 247 of file eq.hpp.

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

Perform propagation.

Definition at line 257 of file eq.hpp.

ExecStatus Gecode::Int::Rel::NaryEqDom::post ( Home  home,
ViewArray< View > &  x 
) [static]

Post domain consistent propagator $ x_0 = x_1=\ldots =x_{|x|-1}$.

Definition at line 214 of file eq.hpp.


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