Generated on Wed Nov 1 15:05:25 2006 for Gecode by doxygen 1.4.5

Gecode::Set::Select::SelectIntersection< SView, RView > Class Template Reference
[Set propagators]

#include <select.hh>

Inherits Gecode::Propagator.

List of all members.


Detailed Description

template<class SView, class RView>
class Gecode::Set::Select::SelectIntersection< SView, RView >

Propagator for selected intersection

Requires

Definition at line 47 of file select.hh.

Public Member Functions

virtual Actorcopy (Space *home, bool)
 Copy propagator during cloning.
virtual PropCost cost (void) const
 Cost function.
virtual size_t dispose (Space *home)
 Delete propagator and return its size.
virtual ExecStatus propagate (Space *home)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Space *home, SView z, IdxViewArray< SView > &x, RView y, const IntSet &u)

Protected Member Functions

 SelectIntersection (Space *home, bool share, SelectIntersection &p)
 Constructor for cloning p.
 SelectIntersection (Space *home, SView, IdxViewArray< SView > &, RView, const IntSet &universe)
 Constructor for posting.

Protected Attributes

IntSet universe
SView x0
IdxViewArray< SView > iv
RView x1


Constructor & Destructor Documentation

template<class SView, class RView>
Gecode::Set::Select::SelectIntersection< SView, RView >::SelectIntersection Space home,
bool  share,
SelectIntersection< SView, RView > &  p
[protected]
 

Constructor for cloning p.

template<class SView, class RView>
Gecode::Set::Select::SelectIntersection< SView, RView >::SelectIntersection Space home,
SView  ,
IdxViewArray< SView > &  ,
RView  ,
const IntSet universe
[inline, protected]
 

Constructor for posting.

Definition at line 29 of file inter.icc.


Member Function Documentation

template<class SView, class RView>
Actor * Gecode::Set::Select::SelectIntersection< SView, RView >::copy Space home,
bool 
[virtual]
 

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 88 of file inter.icc.

template<class SView, class RView>
PropCost Gecode::Set::Select::SelectIntersection< SView, RView >::cost void   )  const [virtual]
 

Cost function.

Implements Gecode::Propagator.

Definition at line 54 of file inter.icc.

template<class SView, class RView>
size_t Gecode::Set::Select::SelectIntersection< SView, RView >::dispose Space home  )  [virtual]
 

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 60 of file inter.icc.

template<class SView, class RView>
ExecStatus Gecode::Set::Select::SelectIntersection< SView, RView >::propagate Space home  )  [virtual]
 

Perform propagation.

Implements Gecode::Propagator.

Definition at line 94 of file inter.icc.

template<class SView, class RView>
ExecStatus Gecode::Set::Select::SelectIntersection< SView, RView >::post Space home,
SView  z,
IdxViewArray< SView > &  x,
RView  y,
const IntSet u
[static]
 

Post propagator for $ z=\bigcap\langle x_0,\dots,x_{n-1}\rangle[y] $ using u as universe

If y is empty, z will be constrained to be the given universe u (as an empty intersection is the universe).

Definition at line 74 of file inter.icc.


Member Data Documentation

template<class SView, class RView>
IntSet Gecode::Set::Select::SelectIntersection< SView, RView >::universe [protected]
 

Definition at line 50 of file select.hh.

template<class SView, class RView>
SView Gecode::Set::Select::SelectIntersection< SView, RView >::x0 [protected]
 

Definition at line 51 of file select.hh.

template<class SView, class RView>
IdxViewArray<SView> Gecode::Set::Select::SelectIntersection< SView, RView >::iv [protected]
 

Definition at line 52 of file select.hh.

template<class SView, class RView>
RView Gecode::Set::Select::SelectIntersection< SView, RView >::x1 [protected]
 

Definition at line 53 of file select.hh.


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