|
| IntVarImp (Space &home, int min, int max) |
| Initialize with range domain.
|
|
| IntVarImp (Space &home, const IntSet &d) |
| Initialize with domain specified by d.
|
|
| IntVarImpBase (void) |
| Constructor for creating static instance of variable.
|
|
| IntVarImpBase (Gecode::Space &home) |
| Constructor for creating variable.
|
|
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, bool failed) |
| 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.
|
|
void | reschedule (Gecode::Space &home, Gecode::Propagator &p, Gecode::PropCond pc, bool assigned) |
| Re-schedule propagator p.
|
|
| VarImp (Space &home) |
| Creation.
|
|
| VarImp (void) |
| Creation of static instances.
|
|
VarImp * | next (void) const |
| Return next copied variable.
|
|
| VarImp (Space &home, VarImp &x) |
| Constructor for cloning.
|
|
bool | copied (void) const |
| Is variable already copied.
|
|
VarImp * | forward (void) const |
| Use forward pointer if variable already copied.
|
|
void | cancel (Space &home, Propagator &p, PropCond pc) |
| Cancel subscription of propagator p with propagation condition pc.
|
|
void | cancel (Space &home, Advisor &a, bool fail) |
| Cancel subscription of advisor a.
|
|
void | subscribe (Space &home, Propagator &p, PropCond pc, bool assigned, ModEvent me, bool schedule) |
| Subscribe propagator p with propagation condition pc.
|
|
void | subscribe (Space &home, Advisor &a, bool assigned, bool fail) |
| Subscribe advisor a to variable.
|
|
unsigned int | degree (void) const |
| Return degree (number of subscribed propagators and advisors)
|
|
double | afc (void) const |
| Return accumulated failure count (plus degree)
|
|
unsigned int | bits (void) const |
| Provide access to free bits.
|
|
unsigned int & | bits (void) |
| Provide access to free bits.
|
|
|
ModEvent | lq (Space &home, int n) |
| Restrict domain values to be less or equal than n.
|
|
ModEvent | lq (Space &home, long long int n) |
| Restrict domain values to be less or equal than n.
|
|
ModEvent | gq (Space &home, int n) |
| Restrict domain values to be greater or equal than n.
|
|
ModEvent | gq (Space &home, long long int n) |
| Restrict domain values to be greater or equal than n.
|
|
ModEvent | nq (Space &home, int n) |
| Restrict domain values to be different from n.
|
|
ModEvent | nq (Space &home, long long int n) |
| Restrict domain values to be different from n.
|
|
ModEvent | eq (Space &home, int n) |
| Restrict domain values to be equal to n.
|
|
ModEvent | eq (Space &home, long long int n) |
| Restrict domain values to be equal to n.
|
|
|
Variable domains can be both updated by range and value iterators. Value iterators do not need to be strict in that the same value is allowed to occur more than once in the iterated sequence.
The argument depends must be true, if the iterator passed as argument depends on the variable implementation on which the operation is invoked. In this case, the variable implementation is only updated after the iterator has been consumed. Otherwise, the domain might be updated concurrently while following the iterator.
|
template<class I > |
ModEvent | narrow_r (Space &home, I &i, bool depends=true) |
| Replace domain by ranges described by i.
|
|
template<class I > |
ModEvent | inter_r (Space &home, I &i, bool depends=true) |
| Intersect domain with ranges described by i.
|
|
template<class I > |
ModEvent | minus_r (Space &home, I &i, bool depends=true) |
| Remove from domain the ranges described by i.
|
|
template<class I > |
ModEvent | narrow_v (Space &home, I &i, bool depends=true) |
| Replace domain by values described by i.
|
|
template<class I > |
ModEvent | inter_v (Space &home, I &i, bool depends=true) |
| Intersect domain with values described by i.
|
|
template<class I > |
ModEvent | minus_v (Space &home, I &i, bool depends=true) |
| Remove from domain the values described by i.
|
|
|
static void | schedule (Gecode::Space &home, Gecode::Propagator &p, Gecode::ModEvent me) |
| Schedule propagator p.
|
|
static void | schedule (Space &home, Propagator &p, ModEvent me, bool force=false) |
| Schedule propagator p with modification event me.
|
|
static void | reschedule (Space &home, Propagator &p, PropCond pc, bool assigned, ModEvent me) |
| Schedule propagator p.
|
|
static ModEvent | me (const ModEventDelta &med) |
| Project modification event for this variable type from med.
|
|
static ModEventDelta | med (ModEvent me) |
| Translate modification event me into modification event delta.
|
|
static ModEvent | me_combine (ModEvent me1, ModEvent me2) |
| Combine modifications events me1 and me2.
|
|
static ModEvent | modevent (const Delta &d) |
| Return modification event.
|
|
static void * | operator new (size_t, Space &) |
| Allocate memory from space.
|
|
static void | operator delete (void *, Space &) |
| Return memory to space.
|
|
static void | operator delete (void *) |
| Needed for exceptions.
|
|
ActorLink ** | base |
| Subscribed actors.
|
|
VarImp< Gecode::Int::IntVarImpConf > * | fwd |
| Forwarding pointer.
|
|
unsigned int | idx [pc_max+1] |
| Indices of subscribed actors.
|
|
VarImp< Gecode::Int::IntVarImpConf > * | next |
| During cloning, points to the next copied variable.
|
|
Integer variable implementation.
Definition at line 89 of file var-imp.hpp.