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

Gecode::Int::Rel::NaryEqDom< View > Class Template Reference
[Integer propagators]

#include <rel.hh>

Inherits Gecode::NaryPropagator< View, PC_INT_DOM >.

List of all members.


Detailed Description

template<class View>
class Gecode::Int::Rel::NaryEqDom< View >

n-ary 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 122 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, 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 (Space *home, ViewArray< View > &)
 Constructor for posting.


Constructor & Destructor Documentation

template<class View>
Gecode::Int::Rel::NaryEqDom< View >::NaryEqDom Space home,
bool  share,
NaryEqDom< View > &  p
[inline, protected]
 

Constructor for cloning p.

Definition at line 195 of file eq.icc.

template<class View>
Gecode::Int::Rel::NaryEqDom< View >::NaryEqDom Space home,
ViewArray< View > & 
[inline, protected]
 

Constructor for posting.

Definition at line 179 of file eq.icc.


Member Function Documentation

template<class View>
Actor * Gecode::Int::Rel::NaryEqDom< View >::copy Space home,
bool  share
[virtual]
 

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 200 of file eq.icc.

template<class View>
PropCost Gecode::Int::Rel::NaryEqDom< View >::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 dynamic PC_LINEAR_LO. Otherwise it is dynamic PC_LINEAR_HI.

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

Definition at line 206 of file eq.icc.

template<class View>
ExecStatus Gecode::Int::Rel::NaryEqDom< View >::propagate Space home  )  [virtual]
 

Perform propagation.

Implements Gecode::Propagator.

Definition at line 216 of file eq.icc.

template<class View>
ExecStatus Gecode::Int::Rel::NaryEqDom< View >::post Space home,
ViewArray< View > &  x
[static]
 

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

Definition at line 184 of file eq.icc.


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