constint.hpp
Go to the documentation of this file.
void update(Space &home, ConstView &y)
Update this view to be a clone of view y.
Definition view.hpp:461
ModEvent narrow_r(Space &home, I &i, bool depends=true)
Replace domain by ranges described by i.
Definition constint.hpp:168
ModEvent inter_v(Space &home, I &i, bool depends=true)
Intersect domain with values described by i.
Definition constint.hpp:192
ModEvent gr(Space &home, int n)
Restrict domain values to be greater than n.
Definition constint.hpp:134
ModEvent inter_r(Space &home, I &i, bool depends=true)
Intersect domain with ranges described by i.
Definition constint.hpp:173
bool operator<(const ConstIntView &y) const
Whether this view comes before view y (arbitrary order).
Definition constint.hpp:245
ModEvent minus_r(Space &home, I &i, bool depends=true)
Remove from domain the ranges described by i.
Definition constint.hpp:180
unsigned int regret_min(void) const
Return regret of domain minimum (distance to next larger value).
Definition constint.hpp:75
unsigned int regret_max(void) const
Return regret of domain maximum (distance to next smaller value).
Definition constint.hpp:79
ModEvent lq(Space &home, int n)
Restrict domain values to be less or equal than n.
Definition constint.hpp:107
ModEvent nq(Space &home, int n)
Restrict domain values to be different from n.
Definition constint.hpp:143
unsigned int width(void) const
Return width of domain (distance between maximum and minimum).
Definition constint.hpp:71
void update(Space &home, ConstIntView &y)
Update this view to be a clone of view y.
Definition constint.hpp:234
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
Definition constint.hpp:125
ModEvent narrow_v(Space &home, I &i, bool depends=true)
Replace domain by values described by i.
Definition constint.hpp:187
ModEvent minus_v(Space &home, I &i, bool depends=true)
Remove from domain the values described by i.
Definition constint.hpp:199
int med(void) const
Return median of domain (greatest element not greater than the median).
Definition constint.hpp:58
void init(const ConstIntView &x)
Initialize with ranges for view x.
bool operator()(void) const
Test whether iterator is still at a range or done.
unsigned int width(void) const
Return width of range (distance between minimum and maximum).
const Gecode::ModEvent ME_INT_FAILED
Domain operation has resulted in failure.
Definition var-type.hpp:60
bool operator==(const CachedView< View > &x, const CachedView< View > &y)
Definition cached.hpp:401
bool operator!=(const CachedView< View > &x, const CachedView< View > &y)
Definition cached.hpp:406
const Gecode::ModEvent ME_INT_NONE
Domain operation has not changed domain.
Definition var-type.hpp:62
Gecode toplevel namespace
