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

Gecode::Set::Int::Card< View > Class Template Reference
[Set propagators]

#include <int.hh>

Inherits IntSetPropagator< View, PC_SET_CARD, Gecode::Int::PC_INT_BND >.

List of all members.


Detailed Description

template<class View>
class Gecode::Set::Int::Card< View >

Propagator for cardinality

Requires

 #include "gecode/set/int.hh" 

Definition at line 127 of file int.hh.


Public Member Functions

virtual Actorcopy (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 ExecStatus post (Space *home, View s, Gecode::Int::IntView x)
 Post propagator for $ |s|=x $.
static void post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec)
 Post using specification.
static Support::Symbol ati (void)
 Name of this propagator.

Protected Member Functions

 Card (Space *home, bool share, Card &p)
 Constructor for cloning p.
 Card (Space *home, View, Gecode::Int::IntView)
 Constructor for posting.

Constructor & Destructor Documentation

template<class View>
Gecode::Set::Int::Card< View >::Card ( Space home,
bool  share,
Card< View > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 64 of file card.icc.

template<class View>
Gecode::Set::Int::Card< View >::Card ( Space home,
View  y0,
Gecode::Int::IntView  y1 
) [inline, protected]

Constructor for posting.

Definition at line 49 of file card.icc.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 70 of file card.icc.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 89 of file card.icc.

template<class View>
ExecStatus Gecode::Set::Int::Card< View >::post ( Space home,
View  s,
Gecode::Int::IntView  x 
) [inline, static]

Post propagator for $ |s|=x $.

Definition at line 55 of file card.icc.

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

Specification for this propagator.

Reimplemented from Gecode::Actor.

Definition at line 82 of file card.icc.

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

Post using specification.

Definition at line 106 of file card.icc.

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

Name of this propagator.

Definition at line 76 of file card.icc.


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