Generated on Mon Aug 27 2012 17:16:07 for Gecode by doxygen 1.8.1.2
Gecode::Set::Int::Match< View > Class Template Reference

Propagator for the match constraint More...

#include <int.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool)
 Copy propagator during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as PC_LINEAR_LO)
virtual size_t dispose (Space &home)
 Delete Propagator.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
- Public Member Functions inherited from Gecode::Propagator
ModEventDelta modeventdelta (void) const
 Return the modification event delta.
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function.
double afc (void) const
 Return the accumlated failure count.

Static Public Member Functions

static ExecStatus post (Home 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.

Protected Member Functions

 Match (Space &home, bool share, Match &p)
 Constructor for cloning p.
 Match (Home home, View, ViewArray< Gecode::Int::IntView > &)
 Constructor for posting.
- Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting.
 Propagator (Space &home, bool share, Propagator &p)
 Constructor for cloning p.

Protected Attributes

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

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 262 of file int.hh.

Constructor & Destructor Documentation

template<class View >
Gecode::Set::Int::Match< View >::Match ( Space home,
bool  share,
Match< View > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 60 of file match.hpp.

template<class View >
Gecode::Set::Int::Match< View >::Match ( Home  home,
View  y0,
ViewArray< Gecode::Int::IntView > &  ys 
)
inlineprotected

Constructor for posting.

Definition at line 52 of file match.hpp.

Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 101 of file match.hpp.

template<class View >
PropCost Gecode::Set::Int::Match< View >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as PC_LINEAR_LO)

Implements Gecode::Propagator.

Definition at line 86 of file match.hpp.

template<class View >
size_t Gecode::Set::Int::Match< View >::dispose ( Space home)
inlinevirtual

Delete Propagator.

Reimplemented from Gecode::Actor.

Definition at line 92 of file match.hpp.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 107 of file match.hpp.

template<class View >
ExecStatus Gecode::Set::Int::Match< View >::post ( Home  home,
View  s,
ViewArray< Gecode::Int::IntView > &  x 
)
inlinestatic

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

Definition at line 68 of file match.hpp.

Member Data Documentation

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

SetView for the match.

Definition at line 265 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 267 of file int.hh.


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