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

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

#include <int.hh>

Inherits Gecode::Propagator.

List of all members.


Detailed Description

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

Propagator for the match constraint

Requires

 #include "gecode/set/int.hh" 

Definition at line 162 of file int.hh.


Public Member Functions

virtual Actorcopy (Space *home, bool)
 Copy propagator during cloning.
virtual PropCost cost (ModEventDelta med) const
 Cost function (defined as PC_LINEAR_LO).
virtual size_t dispose (Space *home)
 Delete Propagator.
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, ViewArray< Gecode::Int::IntView > &x)
 Post propagator that propagates that s contains the $x_i$, which are sorted in non-descending order.
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

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

Protected Attributes

View x0
 SetView for the match.
ViewArray< Gecode::Int::IntViewxs
 IntViews that together form the set x0.

Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 60 of file match.icc.

template<class View>
Gecode::Set::Int::Match< View >::Match ( Space home,
View  y0,
ViewArray< Gecode::Int::IntView > &  ys 
) [inline, protected]

Constructor for posting.

Definition at line 52 of file match.icc.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 102 of file match.icc.

template<class View>
PropCost Gecode::Set::Int::Match< View >::cost ( ModEventDelta  med  )  const [inline, virtual]

Cost function (defined as PC_LINEAR_LO).

Implements Gecode::Propagator.

Definition at line 86 of file match.icc.

template<class View>
size_t Gecode::Set::Int::Match< View >::dispose ( Space home  )  [inline, virtual]

Delete Propagator.

Reimplemented from Gecode::Actor.

Definition at line 92 of file match.icc.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 108 of file match.icc.

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

Post propagator that propagates that s contains the $x_i$, which are sorted in non-descending order.

Definition at line 68 of file match.icc.

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

Specification for this propagator.

Reimplemented from Gecode::Actor.

Definition at line 206 of file match.icc.

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

Post using specification.

Definition at line 214 of file match.icc.

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

Name of this propagator.

Definition at line 200 of file match.icc.


Member Data Documentation

template<class View>
View Gecode::Set::Int::Match< View >::x0 [protected]

SetView for the match.

Definition at line 165 of file int.hh.

template<class View>
ViewArray<Gecode::Int::IntView> Gecode::Set::Int::Match< View >::xs [protected]

IntViews that together form the set x0.

Definition at line 167 of file int.hh.


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