Growing sets of integers. More...
#include <var-imp.hpp>
Constructors and initialization | |
GLBndSet (void) | |
Default constructor. Creates an empty set. More... | |
GLBndSet (Space &) | |
Default constructor. Creates an empty set. More... | |
GLBndSet (Space &home, int i, int j) | |
Initialize as the set ![]() | |
GLBndSet (Space &home, const IntSet &s) | |
Initialize as the set represented by s. More... | |
void | init (Space &home) |
Initialize as the empty set. More... | |
Update operations | |
bool | include (Space &home, int i, int j, SetDelta &d) |
Include the set ![]() | |
template<class I > | |
bool | includeI (Space &home, I &i) |
Include the set represented by i in this set. More... | |
Additional Inherited Members | |
![]() | |
bool | isConsistent (void) const |
Check whether internal invariants hold. More... | |
BndSet (void) | |
Default constructor. Creates an empty set. More... | |
BndSet (Space &home, int i, int j) | |
Initialize as the set ![]() | |
BndSet (Space &home, const IntSet &s) | |
Initialize as the set represented by s. More... | |
void | dispose (Space &home) |
Free memory used by this set. More... | |
int | min (void) const |
Return smallest element. More... | |
int | max (void) const |
Return greatest element. More... | |
int | minN (unsigned int n) const |
Return n -th smallest element. More... | |
unsigned int | size (void) const |
Return size. More... | |
unsigned int | card (void) const |
Return cardinality. More... | |
void | card (unsigned int c) |
Set cardinality. More... | |
bool | empty (void) const |
Test whether this set is empty. More... | |
bool | in (int i) const |
Test whether i is an element of this set. More... | |
void | become (Space &home, const BndSet &s) |
Make this set equal to s. More... | |
RangeList * | ranges (void) const |
Return range list for iteration. More... | |
void | update (Space &home, BndSet &x) |
Update this set to be a clone of set x. More... | |
![]() | |
static const int | MAX_OF_EMPTY = Limits::min-1 |
Returned by empty sets when asked for their maximum element. More... | |
static const int | MIN_OF_EMPTY = Limits::max+1 |
Returned by empty sets when asked for their minimum element. More... | |
![]() | |
void | fst (RangeList *r) |
Set first range to r. More... | |
void | lst (RangeList *r) |
Set last range to r. More... | |
RangeList * | fst (void) const |
Return first range. More... | |
RangeList * | lst (void) const |
Return last range. More... | |
template<class I > | |
bool | overwrite (Space &home, I &i) |
Overwrite the ranges with those represented by i. More... | |
![]() | |
unsigned int | _size |
The size of this set. More... | |
unsigned int | _card |
The cardinality this set represents. More... | |
Growing sets of integers.
These sets provide operations for monotonically growing the set. Growing sets are used for implementing the greatest lower bound of set variables.
Definition at line 209 of file var-imp.hpp.
|
inline |
Default constructor. Creates an empty set.
Definition at line 261 of file integerset.hpp.
|
inline |
Default constructor. Creates an empty set.
Definition at line 264 of file integerset.hpp.
|
inline |
Initialize as the set .
Definition at line 267 of file integerset.hpp.
Initialize as the set represented by s.
Definition at line 271 of file integerset.hpp.
|
inline |
Initialize as the empty set.
Definition at line 275 of file integerset.hpp.
Include the set in this set.
Definition at line 283 of file integerset.hpp.
bool Gecode::Set::GLBndSet::includeI | ( | Space & | home, |
I & | i | ||
) |
Include the set represented by i in this set.
Definition at line 300 of file integerset.hpp.