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

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

#include <rel.hh>

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


Public Member Functions

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

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

Constructor for posting.

Definition at line 254 of file eq.icc.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 286 of file eq.icc.

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

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

Definition at line 314 of file eq.icc.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 324 of file eq.icc.

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

Specification for this propagator.

Reimplemented from Gecode::Actor.

Definition at line 298 of file eq.icc.

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

Post propagator according to specification.

Definition at line 305 of file eq.icc.

template<class View>
Support::Symbol Gecode::Int::Rel::NaryEqDom< View >::ati ( void   )  [inline, static]

Mangled propagator name.

Definition at line 292 of file eq.icc.

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

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

Definition at line 259 of file eq.icc.


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