Generated on Sun Aug 26 2012 08:44:28 for Gecode by doxygen 1.8.1.1
Gecode::Set::RelOp::UnionN< View0, View1 > Class Template Reference

Propagator for nary union More...

#include <rel-op.hh>

List of all members.

Public Member Functions

virtual Actorcopy (Space &home, bool)
 Copy propagator during cloning.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low linear)
- Public Member Functions inherited from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >
virtual size_t dispose (Space &home)
 Delete propagator and return its size.
- 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, ViewArray< View0 > &y, View1 x)
 Post propagator $ x = \bigcup_{i\in\{0,\dots,n-1\}} y_i $.
static ExecStatus post (Home home, ViewArray< View0 > &y, const IntSet &z, View1 x)
 Post propagator $ x = z\cup\bigcup_{i\in\{0,\dots,n-1\}} y_i $.

Protected Member Functions

 UnionN (Space &home, bool share, UnionN &p)
 Constructor for cloning p.
 UnionN (Home home, ViewArray< View0 > &, View1)
 Constructor for posting.
 UnionN (Home home, ViewArray< View0 > &, const IntSet &, View1)
 Constructor for posting.
- Protected Member Functions inherited from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >
 MixNaryOnePropagator (Space &home, bool share, MixNaryOnePropagator &p)
 Constructor for cloning p.
 MixNaryOnePropagator (Home home, ViewArray< View0 > &x, View1 y)
 Constructor for creation.
 MixNaryOnePropagator (Space &home, bool share, Propagator &p, ViewArray< View0 > &x, View1 y)
 Constructor for rewriting p during cloning.
- 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

bool shared
 Whether the any views share a variable implementation.
GLBndSet unionOfDets
 Union of the determined $x_i$ (which are dropped)
- Protected Attributes inherited from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >
ViewArray< View0 > x
 Array of views.
View1 y
 Single view.

Detailed Description

template<class View0, class View1>
class Gecode::Set::RelOp::UnionN< View0, View1 >

Propagator for nary union

Requires

Definition at line 221 of file rel-op.hh.


Constructor & Destructor Documentation

template<class View0 , class View1 >
Gecode::Set::RelOp::UnionN< View0, View1 >::UnionN ( Space home,
bool  share,
UnionN< View0, View1 > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 225 of file union.hpp.

template<class View0 , class View1 >
Gecode::Set::RelOp::UnionN< View0, View1 >::UnionN ( Home  home,
ViewArray< View0 > &  x,
View1  y 
)
inlineprotected

Constructor for posting.

Definition at line 208 of file union.hpp.

template<class View0 , class View1 >
Gecode::Set::RelOp::UnionN< View0, View1 >::UnionN ( Home  home,
ViewArray< View0 > &  x,
const IntSet z,
View1  y 
)
inlineprotected

Constructor for posting.

Definition at line 215 of file union.hpp.


Member Function Documentation

template<class View0 , class View1 >
Actor * Gecode::Set::RelOp::UnionN< View0, View1 >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 233 of file union.hpp.

template<class View0 , class View1 >
ExecStatus Gecode::Set::RelOp::UnionN< View0, View1 >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 270 of file union.hpp.

template<class View0 , class View1 >
PropCost Gecode::Set::RelOp::UnionN< View0, View1 >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function (defined as low linear)

Reimplemented from Gecode::MixNaryOnePropagator< View0, PC_SET_ANY, View1, PC_SET_ANY >.

Definition at line 264 of file union.hpp.

template<class View0 , class View1 >
ExecStatus Gecode::Set::RelOp::UnionN< View0, View1 >::post ( Home  home,
ViewArray< View0 > &  y,
View1  x 
)
static

Post propagator $ x = \bigcup_{i\in\{0,\dots,n-1\}} y_i $.

Definition at line 239 of file union.hpp.

template<class View0 , class View1 >
ExecStatus Gecode::Set::RelOp::UnionN< View0, View1 >::post ( Home  home,
ViewArray< View0 > &  y,
const IntSet z,
View1  x 
)
static

Post propagator $ x = z\cup\bigcup_{i\in\{0,\dots,n-1\}} y_i $.

Definition at line 256 of file union.hpp.


Member Data Documentation

template<class View0, class View1>
bool Gecode::Set::RelOp::UnionN< View0, View1 >::shared
protected

Whether the any views share a variable implementation.

Definition at line 227 of file rel-op.hh.

template<class View0, class View1>
GLBndSet Gecode::Set::RelOp::UnionN< View0, View1 >::unionOfDets
protected

Union of the determined $x_i$ (which are dropped)

Definition at line 229 of file rel-op.hh.


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