Gecode::CpltSet::Singleton< View1, View2 > Class Template Reference
[CpltSet propagators]
#include <propagators.hh>
Inherits Gecode::Propagator.
Detailed Description
template<class View1, class View2>
class Gecode::CpltSet::Singleton< View1, View2 >
Singleton channel propagator from IntVar to CpltSetVar.
Requires
#include "gecode/cpltset/propagators.hh"
Definition at line 296 of file propagators.hh.
Public Member Functions | |
virtual PropCost | cost (ModEventDelta med) const |
Cost function. | |
virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
Specification for this propagator. | |
virtual size_t | dispose (Space *home) |
Delete propagator. | |
virtual Actor * | copy (Space *home, bool) |
Copy propagator during cloning. | |
virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
Perform propagation. | |
Static Public Member Functions | |
static Support::Symbol | ati (void) |
Name of this propagator. | |
static ExecStatus | post (Space *home, View1 &x, View2 &s) |
Protected Member Functions | |
Singleton (Space *home, bool share, Singleton &p) | |
Constructor for cloning p. | |
Singleton (Space *home, View1 &x, View2 &s) | |
Constructor for creation. | |
Protected Attributes | |
View1 | x |
View for the IntVar. | |
View2 | s |
View for the CpltSetVar. |
Constructor & Destructor Documentation
template<class View1, class View2>
Gecode::CpltSet::Singleton< View1, View2 >::Singleton | ( | Space * | home, | |
bool | share, | |||
Singleton< View1, View2 > & | p | |||
) | [inline, protected] |
template<class View1, class View2>
Gecode::CpltSet::Singleton< View1, View2 >::Singleton | ( | Space * | home, | |
View1 & | x, | |||
View2 & | s | |||
) | [inline, protected] |
Member Function Documentation
template<class View1, class View2>
PropCost Gecode::CpltSet::Singleton< View1, View2 >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
template<class View1, class View2>
Reflection::ActorSpec Gecode::CpltSet::Singleton< View1, View2 >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
Specification for this propagator.
Reimplemented from Gecode::Actor.
Definition at line 71 of file singleton.icc.
template<class View1, class View2>
Support::Symbol Gecode::CpltSet::Singleton< View1, View2 >::ati | ( | void | ) | [inline, static] |
template<class View1, class View2>
size_t Gecode::CpltSet::Singleton< View1, View2 >::dispose | ( | Space * | home | ) | [inline, virtual] |
template<class View1, class View2>
Actor * Gecode::CpltSet::Singleton< View1, View2 >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 96 of file singleton.icc.
template<class View1, class View2>
ExecStatus Gecode::CpltSet::Singleton< View1, View2 >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
template<class View1, class View2>
ExecStatus Gecode::CpltSet::Singleton< View1, View2 >::post | ( | Space * | home, | |
View1 & | x, | |||
View2 & | s | |||
) | [inline, static] |
Definition at line 89 of file singleton.icc.
Member Data Documentation
template<class View1, class View2>
View1 Gecode::CpltSet::Singleton< View1, View2 >::x [protected] |
template<class View1, class View2>
View2 Gecode::CpltSet::Singleton< View1, View2 >::s [protected] |
The documentation for this class was generated from the following files:
- gecode/cpltset/propagators.hh (Revision: 5993)
- gecode/cpltset/propagators/singleton.icc (Revision: 6017)