Generated on Wed Mar 19 07:30:12 2008 for Gecode by doxygen 1.5.5

Gecode::Set::Projection::CardProjection Class Reference

#include <propagator.hh>

Inherits Gecode::Propagator.

List of all members.


Detailed Description

Nary cardinality projection propagator.

Definition at line 126 of file propagator.hh.


Public Member Functions

virtual PropCost cost (ModEventDelta med) const
 Cost function.
virtual size_t dispose (Space *home)
 Delete propagator.
virtual Actor * copy (Space *home, bool)
 Copy propagator during cloning.
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 Support::Symbol ati (void)
 Name of this propagator.
static ExecStatus post (Space *home, ViewArray< SetView > &x, Gecode::Int::IntView i, Projector &p)

Protected Member Functions

 CardProjection (Space *home, bool share, CardProjection &p)
 Constructor for cloning p.
 CardProjection (Space *home, ViewArray< SetView > &x, Gecode::Int::IntView i, Projector &ps)
 Constructor for creation.

Protected Attributes

ViewArray< SetView > x
 Array of views.
Gecode::Int::IntView i
 Integer view for cardinality.
SharedArray< PropCond > pc
 Array of PropConds.
Projector proj
 The projector to propagate.

Constructor & Destructor Documentation

Gecode::Set::Projection::CardProjection::CardProjection ( Space *  home,
bool  share,
CardProjection &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 58 of file card.icc.

Gecode::Set::Projection::CardProjection::CardProjection ( Space *  home,
ViewArray< SetView > &  x,
Gecode::Int::IntView  i,
Projector &  ps 
) [inline, protected]

Constructor for creation.

Definition at line 42 of file card.icc.


Member Function Documentation

PropCost Gecode::Set::Projection::CardProjection::cost ( ModEventDelta  med  )  const [inline, virtual]

Cost function.

Implements Gecode::Propagator.

Definition at line 66 of file card.icc.

size_t Gecode::Set::Projection::CardProjection::dispose ( Space *  home  )  [inline, virtual]

Delete propagator.

Reimplemented from Gecode::Actor.

Definition at line 86 of file card.icc.

Actor * Gecode::Set::Projection::CardProjection::copy ( Space *  home,
bool  share 
) [inline, virtual]

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 108 of file card.icc.

ExecStatus Gecode::Set::Projection::CardProjection::propagate ( Space *  home,
ModEventDelta  med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 113 of file card.icc.

Reflection::ActorSpec Gecode::Set::Projection::CardProjection::spec ( const Space *  home,
Reflection::VarMap &  m 
) const [inline, virtual]

Specification for this propagator.

Reimplemented from Gecode::Actor.

Definition at line 81 of file card.icc.

Support::Symbol Gecode::Set::Projection::CardProjection::ati ( void   )  [inline, static]

Name of this propagator.

Definition at line 76 of file card.icc.

ExecStatus Gecode::Set::Projection::CardProjection::post ( Space *  home,
ViewArray< SetView > &  x,
Gecode::Int::IntView  i,
Projector &  p 
) [inline, static]

Definition at line 100 of file card.icc.


Member Data Documentation

Array of views.

Definition at line 129 of file propagator.hh.

Integer view for cardinality.

Definition at line 131 of file propagator.hh.

Array of PropConds.

Definition at line 133 of file propagator.hh.

The projector to propagate.

Definition at line 135 of file propagator.hh.


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