Gecode::Int::BoolVarImpBase Class Reference
Base-class for Bool-variable implementations. More...
#include <var-imp.hpp>
Public Member Functions | |
BoolVarImpBase (void) | |
Constructor for creating static instance of variable. | |
BoolVarImpBase (Gecode::Space &home) | |
Constructor for creating variable. | |
Protected Member Functions | |
BoolVarImpBase (Gecode::Space &home, bool share, BoolVarImpBase &x) | |
Constructor for cloning x. | |
Dependencies | |
| |
void | subscribe (Gecode::Space &home, Gecode::Propagator &p, Gecode::PropCond pc, bool assigned, bool schedule) |
Subscribe propagator p with propagation condition pc. | |
void | subscribe (Gecode::Space &home, Gecode::Advisor &a, bool assigned) |
Subscribe advisor a if assigned is false. | |
Gecode::ModEvent | notify (Gecode::Space &home, Gecode::ModEvent me, Gecode::Delta &d) |
Notify that variable implementation has been modified with modification event me and delta information d. |
Detailed Description
Base-class for Bool-variable implementations.
Definition at line 81 of file var-imp.hpp.
Constructor & Destructor Documentation
Gecode::Int::BoolVarImpBase::BoolVarImpBase | ( | Gecode::Space & | home, | |
bool | share, | |||
BoolVarImpBase & | x | |||
) | [inline, protected] |
Constructor for cloning x.
Definition at line 211 of file var-imp.hpp.
Gecode::Int::BoolVarImpBase::BoolVarImpBase | ( | void | ) | [inline] |
Constructor for creating static instance of variable.
Definition at line 204 of file var-imp.hpp.
Gecode::Int::BoolVarImpBase::BoolVarImpBase | ( | Gecode::Space & | home | ) | [inline] |
Constructor for creating variable.
Definition at line 207 of file var-imp.hpp.
Member Function Documentation
void Gecode::Int::BoolVarImpBase::subscribe | ( | Gecode::Space & | home, | |
Gecode::Propagator & | p, | |||
Gecode::PropCond | pc, | |||
bool | assigned, | |||
bool | schedule | |||
) | [inline] |
Subscribe propagator p with propagation condition pc.
In case schedule is false, the propagator is just subscribed but not scheduled for execution (this must be used when creating subscriptions during propagation).
In case the variable is assigned (that is, assigned is true), the subscribing propagator is scheduled for execution. Otherwise, the propagator subscribes and is scheduled for execution with modification event me provided that pc is different from PC_BOOL_VAL.
Definition at line 215 of file var-imp.hpp.
void Gecode::Int::BoolVarImpBase::subscribe | ( | Gecode::Space & | home, | |
Gecode::Advisor & | a, | |||
bool | assigned | |||
) | [inline] |
Subscribe advisor a if assigned is false.
Reimplemented from Gecode::VarImp< Gecode::Int::BoolVarImpConf >.
Definition at line 219 of file var-imp.hpp.
Gecode::ModEvent Gecode::Int::BoolVarImpBase::notify | ( | Gecode::Space & | home, | |
Gecode::ModEvent | me, | |||
Gecode::Delta & | d | |||
) | [inline] |
Notify that variable implementation has been modified with modification event me and delta information d.
Definition at line 224 of file var-imp.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/var-imp.hpp