Public Types |
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Protected Attributes
Gecode::Set::Element::ElementUnion< SView, RView > Class Template Reference
[Set propagators]
Propagator for element with union More...
#include <element.hh>
Public Types | |
| typedef Gecode::Int::Element::IdxViewArray < SView > | IdxViewArray |
Public Member Functions | |
| virtual Actor * | copy (Space &home, bool) |
| Copy propagator during cloning. | |
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| Cost function. | |
| virtual size_t | dispose (Space &home) |
| Delete propagator and return its size. | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
| Perform propagation. | |
Static Public Member Functions | |
| static ExecStatus | post (Home home, SView z, IdxViewArray &x, RView y) |
Protected Member Functions | |
| ElementUnion (Space &home, bool share, ElementUnion &p) | |
| Constructor for cloning p. | |
| ElementUnion (Home home, SView, IdxViewArray &, RView) | |
| Constructor for posting. | |
Protected Attributes | |
| SView | x0 |
| IdxViewArray | iv |
| RView | x1 |
Detailed Description
template<class SView, class RView>
class Gecode::Set::Element::ElementUnion< SView, RView >
Propagator for element with union
Requires
#include <gecode/set/element.hh>
Definition at line 110 of file element.hh.
Member Typedef Documentation
template<class SView, class RView>
| typedef Gecode::Int::Element::IdxViewArray<SView> Gecode::Set::Element::ElementUnion< SView, RView >::IdxViewArray |
Definition at line 112 of file element.hh.
Constructor & Destructor Documentation
template<class SView , class RView >
| Gecode::Set::Element::ElementUnion< SView, RView >::ElementUnion | ( | Space & | home, | |
| bool | share, | |||
| ElementUnion< SView, RView > & | p | |||
| ) | [inline, protected] |
template<class SView , class RView >
| Gecode::Set::Element::ElementUnion< SView, RView >::ElementUnion | ( | Home | home, | |
| SView | y0, | |||
| IdxViewArray & | iv0, | |||
| RView | y1 | |||
| ) | [inline, protected] |
Member Function Documentation
template<class SView , class RView >
| Actor * Gecode::Set::Element::ElementUnion< SView, RView >::copy | ( | Space & | home, | |
| bool | share | |||
| ) | [virtual] |
template<class SView , class RView >
| PropCost Gecode::Set::Element::ElementUnion< SView, RView >::cost | ( | const Space & | home, | |
| const ModEventDelta & | med | |||
| ) | const [virtual] |
template<class SView , class RView >
| size_t Gecode::Set::Element::ElementUnion< SView, RView >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
template<class SView , class RView >
| ExecStatus Gecode::Set::Element::ElementUnion< SView, RView >::propagate | ( | Space & | home, | |
| const ModEventDelta & | med | |||
| ) | [virtual] |
template<class SView , class RView >
| ExecStatus Gecode::Set::Element::ElementUnion< SView, RView >::post | ( | Home | home, | |
| SView | z, | |||
| IdxViewArray & | x, | |||
| RView | y | |||
| ) | [static] |
Member Data Documentation
template<class SView, class RView>
SView Gecode::Set::Element::ElementUnion< SView, RView >::x0 [protected] |
Definition at line 114 of file element.hh.
template<class SView, class RView>
IdxViewArray Gecode::Set::Element::ElementUnion< SView, RView >::iv [protected] |
Definition at line 115 of file element.hh.
template<class SView, class RView>
RView Gecode::Set::Element::ElementUnion< SView, RView >::x1 [protected] |
Definition at line 116 of file element.hh.
The documentation for this class was generated from the following files:
- gecode/set/element.hh (Revision: 10684)
- gecode/set/element/union.hpp (Revision: 11192)

![$ z=\bigcup\langle x_0,\dots,x_{n-1}\rangle[y] $](form_309.png)