Gecode::Set::LUBndSet Class Reference
Inherits Gecode::Set::BndSet.
Detailed Description
Shrinking sets of integers.These sets provide operations for monotonically shrinking the set. Shrinking sets are used for implementing the least upper bound of set variables.
Definition at line 319 of file var-imp.icc.
Constructors and initialization | |
LUBndSet (void) | |
Default constructor. Creates an empty set. | |
LUBndSet (Space *home) | |
Initialize as the full set including everything between Limits::min and Limits::max. | |
LUBndSet (Space *home, int i, int j) | |
Initialize as the set . | |
LUBndSet (Space *home, const IntSet &s) | |
Initialize as the set represented by s. | |
void | init (Space *home) |
Initialize as the full set including everything between Limits::min and Limits::max. | |
Update operations | |
bool | exclude (Space *home, int i, int j, SetDelta &d) |
Exclude the set from this set. | |
bool | intersect (Space *home, int i, int j) |
Intersect this set with the set . | |
template<class I> | |
bool | intersectI (Space *home, I &i) |
Exclude all elements not in the set represented by i from this set. | |
template<class I> | |
bool | excludeI (Space *home, I &i) |
Exclude all elements in the set represented by i from this set. | |
void | excludeAll (Space *home) |
Exclude all elements from this set. |
Constructor & Destructor Documentation
Gecode::Set::LUBndSet::LUBndSet | ( | void | ) | [inline] |
Gecode::Set::LUBndSet::LUBndSet | ( | Space * | home | ) | [inline] |
Initialize as the full set including everything between Limits::min and Limits::max.
Definition at line 378 of file integerset.icc.
Gecode::Set::LUBndSet::LUBndSet | ( | Space * | home, | |
int | i, | |||
int | j | |||
) | [inline] |
Member Function Documentation
void Gecode::Set::LUBndSet::init | ( | Space * | home | ) | [inline] |
Initialize as the full set including everything between Limits::min and Limits::max.
Definition at line 390 of file integerset.icc.
bool Gecode::Set::LUBndSet::intersect | ( | Space * | home, | |
int | i, | |||
int | j | |||
) | [inline] |
template<class I>
bool Gecode::Set::LUBndSet::intersectI | ( | Space * | home, | |
I & | i | |||
) | [inline] |
Exclude all elements not in the set represented by i from this set.
Definition at line 432 of file integerset.icc.
template<class I>
bool Gecode::Set::LUBndSet::excludeI | ( | Space * | home, | |
I & | i | |||
) | [inline] |
Exclude all elements in the set represented by i from this set.
Definition at line 447 of file integerset.icc.
void Gecode::Set::LUBndSet::excludeAll | ( | Space * | home | ) | [inline] |
The documentation for this class was generated from the following files:
- gecode/set/var-imp.icc (Revision: 6327)
- gecode/set/var-imp/integerset.cc (Revision: 6102)
- gecode/set/var-imp/integerset.icc (Revision: 6102)