complement.hpp
Go to the documentation of this file.
Range iterator for singleton range.
Definition ranges-singleton.hpp:42
static const int MAX_OF_EMPTY
Returned by empty sets when asked for their maximum element.
Definition var-imp.hpp:110
static const int MIN_OF_EMPTY
Returned by empty sets when asked for their minimum element.
Definition var-imp.hpp:112
bool glbAny(const Delta &d) const
Test whether arbitrary values got pruned from glb.
Definition complement.hpp:303
static ModEvent me_negateset(ModEvent me)
Negate the modification event me.
Definition complement.hpp:53
ModEvent include(Space &home, int i, int j)
Update greatest lower bound to include all elements between and including i and j.
Definition complement.hpp:207
static ModEvent me(const ModEventDelta &med)
Return modification event for view type in med.
Definition complement.hpp:268
bool contains(int i) const
Test whether i is in the greatest lower bound.
Definition complement.hpp:93
unsigned int lubSize(void) const
Return the number of elements in the least upper bound.
Definition complement.hpp:81
static void schedule(Space &home, Propagator &p, ModEvent me)
Schedule propagator p with modification event me.
Definition complement.hpp:263
bool notContains(int i) const
Test whether i is not in the least upper bound.
Definition complement.hpp:97
ModEvent exclude(Space &home, int i, int j)
Restrict least upper bound to not contain all elements between and including i and j.
Definition complement.hpp:213
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to view.
Definition complement.hpp:238
ModEvent intersect(Space &home, int i, int j)
Update least upper bound to contain at most all elements between and including i and j.
Definition complement.hpp:199
static PropCond pc_negateset(PropCond pc)
Negate the propagation condition pc.
Definition complement.hpp:65
ModEvent intersectI(Space &home, I &iter)
Intersect least upper bound with range sequence described by i.
Definition complement.hpp:231
unsigned int glbSize(void) const
Return the number of elements in the greatest lower bound.
Definition complement.hpp:75
bool lubAny(const Delta &d) const
Test whether arbitrary values got pruned from lub.
Definition complement.hpp:321
void cancel(Space &home, Propagator &p, PropCond pc)
Cancel subscription of propagator p with propagation condition pc to view.
Definition complement.hpp:245
ModEvent excludeI(Space &home, I &i)
Remove range sequence described by i from least upper bound.
Definition complement.hpp:219
ModEvent includeI(Space &home, I &i)
Include range sequence described by i in greatest lower bound.
Definition complement.hpp:225
static ModEventDelta med(ModEvent)
Translate modification event me to modification event delta for view.
Definition complement.hpp:274
unsigned int unknownSize(void) const
Return the number of unknown elements.
Definition complement.hpp:87
unsigned int width(void) const
Return width of ranges (distance between minimum and maximum).
Definition complement.hpp:502
void init(const ComplementView< View > &x)
Initialize with ranges for view x.
Definition complement.hpp:479
bool operator()(void) const
Test whether iterator is still at a range or done.
void init(const T &x)
Initialize with greatest lower bound ranges for set variable x.
unsigned int width(void) const
Return width of range (distance between minimum and maximum).
void init(const ComplementView< View > &x)
Initialize with ranges for view x.
Definition complement.hpp:372
unsigned int width(void) const
Return width of ranges (distance between minimum and maximum).
Definition complement.hpp:395
unsigned int width(void) const
Return width of range (distance between minimum and maximum).
void init(const T &x)
Initialize with least upper bound ranges for set variable x.
bool operator()(void) const
Test whether iterator is still at a range or done.
A complement iterator spezialized for the BndSet limits.
Definition var-imp.hpp:293
std::basic_ostream< Char, Traits > & operator<<(std::basic_ostream< Char, Traits > &os, const IdxViewArray< View > &x)
Definition idx-view.hpp:167
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_SET_CLUB
Domain operation has changed the least upper bound and the cardinality.
Definition var-type.hpp:187
const Gecode::ModEvent ME_SET_NONE
Domain operation has not changed domain.
Definition var-type.hpp:148
const Gecode::ModEvent ME_SET_GLB
Domain operation has changed the greatest lower bound.
Definition var-type.hpp:172
const Gecode::ModEvent ME_SET_CGLB
Domain operation has changed the greatest lower bound and the cardinality.
Definition var-type.hpp:194
const Gecode::PropCond PC_SET_CLUB
Propagate when the cardinality or the least upper bound of a view changes.
Definition var-type.hpp:235
const Gecode::ModEvent ME_SET_LUB
Domain operation has changed the least upper bound.
Definition var-type.hpp:164
const Gecode::PropCond PC_SET_CGLB
Propagate when the cardinality or the greatest lower bound of a view changes.
Definition var-type.hpp:246
Gecode toplevel namespace
void min(Home home, FloatVar x0, FloatVar x1, FloatVar x2)
Post propagator for .
Definition arithmetic.cpp:67
void max(Home home, FloatVar x0, FloatVar x1, FloatVar x2)
Post propagator for .
Definition arithmetic.cpp:49
