var-imp.hpp
Go to the documentation of this file.
BoolVarImpBase(Gecode::Space &home, BoolVarImpBase &x)
Constructor for cloning x.
Definition var-imp.hpp:308
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
Definition bool.hpp:201
ModEvent nq(Space &home, int n)
Restrict domain values to be different from n.
Definition bool.hpp:238
ModEvent inter_v(Space &home, I &i, bool depends=true)
Intersect domain with values described by i.
Definition bool.hpp:351
static void schedule(Space &home, Propagator &p, ModEvent me)
Schedule propagator p with modification event me.
Definition bool.hpp:405
ModEvent narrow_v(Space &home, I &i, bool depends=true)
Replace domain by values described by i.
Definition bool.hpp:332
unsigned int width(void) const
Return width of domain (distance between maximum and minimum).
Definition bool.hpp:91
ModEvent narrow_r(Space &home, I &i, bool depends=true)
Replace domain by ranges described by i.
Definition bool.hpp:276
ModEvent inter_r(Space &home, I &i, bool depends=true)
Intersect domain with ranges described by i.
Definition bool.hpp:297
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p to variable with propagation condition pc.
Definition bool.cpp:60
void reschedule(Space &home, Propagator &p, PropCond pc)
Re-schedule propagator p.
Definition bool.cpp:68
int med(void) const
Return median of domain (greatest element not greater than the median).
Definition bool.hpp:70
unsigned int regret_max(void) const
Return regret of domain maximum (distance to next smaller value).
Definition bool.hpp:105
ModEvent minus_r(Space &home, I &i, bool depends=true)
Remove from domain the ranges described by i.
Definition bool.hpp:314
ModEvent lq(Space &home, int n)
Restrict domain values to be less or equal than n.
Definition bool.hpp:214
unsigned int regret_min(void) const
Return regret of domain minimum (distance to next larger value).
Definition bool.hpp:101
ModEvent minus_v(Space &home, I &i, bool depends=true)
Remove from domain the values described by i.
Definition bool.hpp:370
void cancel(Space &home, Propagator &p, PropCond pc)
Cancel subscription of propagator p with propagation condition pc.
Definition bool.hpp:395
static void schedule(Gecode::Space &home, Gecode::Propagator &p, Gecode::ModEvent me)
Schedule propagator p.
Definition var-imp.hpp:260
IntVarImpBase(Gecode::Space &home, IntVarImpBase &x)
Constructor for cloning x.
Definition var-imp.hpp:247
unsigned int width(void) const
Return width of range (distance between minimum and maximum).
Definition int.hpp:502
void init(const IntVarImp *x)
Initialize with ranges from variable implementation x.
Definition int.hpp:480
void init(const IntVarImp *x)
Initialize with ranges from variable implementation x.
Definition int.hpp:442
unsigned int width(void) const
Return width of range (distance between minimum and maximum).
Definition int.hpp:464
unsigned int width(void) const
Return width (distance between maximum and minimum).
Definition int.hpp:114
void fix(RangeList *n)
Restore simple link to next element (so that it becomes a true free list).
Definition int.hpp:92
void prevnext(RangeList *p, RangeList *n)
Set previous element to p and next element to n.
Definition int.hpp:78
RangeList * prev(const RangeList *n) const
Return previous element (from next n).
Definition int.hpp:74
void dispose(Space &home, RangeList *p, RangeList *l)
Free memory for all elements between this and l (inclusive).
Definition int.hpp:142
const RangeList * ranges_bwd(void) const
Return range list for backward iteration.
Definition int.hpp:320
unsigned int width(void) const
Return width of domain (distance between maximum and minimum).
Definition int.hpp:256
int med(void) const
Return median of domain (greatest element not greater than the median).
Definition int.cpp:52
ModEvent narrow_v(Space &home, I &i, bool depends=true)
Replace domain by values described by i.
Definition int.hpp:850
unsigned int regret_max(void) const
Return regret of domain maximum (distance to next smaller value).
Definition int.hpp:277
ModEvent inter_v(Space &home, I &i, bool depends=true)
Intersect domain with values described by i.
Definition int.hpp:857
ModEvent lq(Space &home, int n)
Restrict domain values to be less or equal than n.
Definition int.hpp:375
ModEvent minus_v(Space &home, I &i, bool depends=true)
Remove from domain the values described by i.
Definition int.hpp:864
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to variable.
Definition int.cpp:372
unsigned int regret_min(void) const
Return regret of domain minimum (distance to next larger value).
Definition int.hpp:266
ModEvent narrow_r(Space &home, I &i, bool depends=true)
Replace domain by ranges described by i.
Definition int.hpp:513
void reschedule(Space &home, Propagator &p, PropCond pc)
Re-schedule propagator p.
Definition int.cpp:378
ModEvent inter_r(Space &home, I &i, bool depends=true)
Intersect domain with ranges described by i.
Definition int.hpp:683
ModEvent minus_r(Space &home, I &i, bool depends=true)
Remove from domain the ranges described by i.
Definition int.hpp:691
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
Definition int.hpp:354
const RangeList * ranges_fwd(void) const
Return range list for forward iteration.
Definition int.hpp:315
ModEvent fail(Space &home)
Definition core.hpp:4829
static ModEvent me(const ModEventDelta &med)
Definition core.hpp:4523
Gecode toplevel namespace
