Gecode::Set::Int::ChannelBool< View > Class Template Reference
[Set propagators]
#include <int.hh>
Inherits MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
Detailed Description
template<class View>
class Gecode::Set::Int::ChannelBool< View >
Propagator for channelling between set variable and its characteristic function
Implements channelling constraints between BoolVar and a SetVar. For BoolVars and SetVar it propagates the constraint .
Requires
#include "gecode/set/int.hh"
Definition at line 261 of file int.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool) |
Copy propagator during cloning. | |
virtual PropCost | cost (ModEventDelta med) const |
Cost function (defined as PC_QUADRATIC_LO). | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
Perform propagation. | |
virtual ExecStatus | advise (Space *home, Advisor *a, const Delta *d) |
Give advice to propagator. | |
virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
Specification for this propagator. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, ViewArray< Gecode::Int::BoolView > &x, View y) |
Post propagator for . | |
static void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
Post using specification. | |
static Support::Symbol | ati (void) |
Name of this propagator. | |
Protected Types | |
typedef MixNaryOnePropagator < Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE > | Super |
Protected Member Functions | |
ChannelBool (Space *home, bool share, ChannelBool &p) | |
Constructor for cloning p. | |
ChannelBool (Space *home, ViewArray< Gecode::Int::BoolView > &, View) | |
Constructor for posting. | |
Protected Attributes | |
Council< IndexAdvisor > | co |
Council for managing advisors. | |
SetDelta | delta |
Accumulated delta information. | |
GLBndSet | zeros |
Accumulated zero Booleans. | |
GLBndSet | ones |
Accumulated one Booleans. | |
bool | running |
Flag whether propagation is currently running. | |
Classes | |
class | IndexAdvisor |
Advisor storing a single index. More... |
Member Typedef Documentation
typedef MixNaryOnePropagator<Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View,PC_GEN_NONE> Gecode::Set::Int::ChannelBool< View >::Super [protected] |
Constructor & Destructor Documentation
Gecode::Set::Int::ChannelBool< View >::ChannelBool | ( | Space * | home, | |
bool | share, | |||
ChannelBool< View > & | p | |||
) | [inline, protected] |
Gecode::Set::Int::ChannelBool< View >::ChannelBool | ( | Space * | home, | |
ViewArray< Gecode::Int::BoolView > & | x0, | |||
View | y0 | |||
) | [inline, protected] |
Member Function Documentation
Actor * Gecode::Set::Int::ChannelBool< View >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 138 of file channel-bool.icc.
PropCost Gecode::Set::Int::ChannelBool< View >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function (defined as PC_QUADRATIC_LO).
Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
Definition at line 125 of file channel-bool.icc.
size_t Gecode::Set::Int::ChannelBool< View >::dispose | ( | Space * | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
Definition at line 129 of file channel-bool.icc.
ExecStatus Gecode::Set::Int::ChannelBool< View >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
Perform propagation.
Implements Gecode::Propagator.
Definition at line 144 of file channel-bool.icc.
ExecStatus Gecode::Set::Int::ChannelBool< View >::advise | ( | Space * | home, | |
Advisor * | a, | |||
const Delta * | d | |||
) | [inline, virtual] |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
Definition at line 194 of file channel-bool.icc.
ExecStatus Gecode::Set::Int::ChannelBool< View >::post | ( | Space * | home, | |
ViewArray< Gecode::Int::BoolView > & | x, | |||
View | y | |||
) | [inline, static] |
Reflection::ActorSpec Gecode::Set::Int::ChannelBool< View >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
Specification for this propagator.
Reimplemented from Gecode::Actor.
Definition at line 287 of file channel-bool.icc.
void Gecode::Set::Int::ChannelBool< View >::post | ( | Space * | home, | |
Reflection::VarMap & | vars, | |||
const Reflection::ActorSpec & | spec | |||
) | [inline, static] |
Support::Symbol Gecode::Set::Int::ChannelBool< View >::ati | ( | void | ) | [inline, static] |
Member Data Documentation
Council<IndexAdvisor> Gecode::Set::Int::ChannelBool< View >::co [protected] |
SetDelta Gecode::Set::Int::ChannelBool< View >::delta [protected] |
GLBndSet Gecode::Set::Int::ChannelBool< View >::zeros [protected] |
GLBndSet Gecode::Set::Int::ChannelBool< View >::ones [protected] |
bool Gecode::Set::Int::ChannelBool< View >::running [protected] |
The documentation for this class was generated from the following files:
- gecode/set/int.hh (Revision: 5993)
- gecode/set/int/channel-bool.icc (Revision: 6017)