40namespace Gecode {
namespace Set {
int n
Number of negative literals for node type.
Generic domain change information to be supplied to advisors.
Range iterator for the greatest lower bound.
void init(const T &x)
Initialize with greatest lower bound ranges for set variable x.
GlbRanges(void)
Default constructor.
Range iterator for the least upper bound.
LubRanges(void)
Default constructor.
void init(const T &x)
Initialize with least upper bound ranges for set variable x.
Finite integer set variable implementation.
bool knownIn(int n) const
Test whether n is contained in greatest lower bound.
int glbMin(void) const
Return minimum of the greatest lower bound.
ModEvent intersect(Space &home, int n)
Exclude everything but n from the least upper bound.
int lubMinN(unsigned int n) const
Return n -th smallest element in the least upper bound.
static bool lubAny(const Delta &d)
Test whether arbitrary values got pruned from lub.
unsigned int cardMax(void) const
Return current cardinality maximum.
unsigned int lubSize(void) const
Return the size of the least upper bound.
int lubMin(void) const
Return minimum of the least upper bound.
int lubMax(void) const
Return maximum of the least upper bound.
int glbMax(void) const
Return maximum of the greatest lower bound.
ModEvent excludeI(Space &home, I &i)
Exclude set described by i from the least upper bound.
static bool glbAny(const Delta &d)
Test whether arbitrary values got pruned from glb.
bool knownOut(int) const
Test whether n is not contained in least upper bound.
ModEvent includeI(Space &home, I &i)
Include set described by i in the greatest lower bound.
unsigned int glbSize(void) const
Return the size of the greatest lower bound.
ModEvent intersectI(Space &home, I &i)
Exclude everything but set described by i from the least upper bound.
ModEvent exclude(Space &home, int n)
Exclude n from the least upper bound.
ModEvent include(Space &home, int n)
Include n in the greatest lower bound.
unsigned int cardMin(void) const
Return current cardinality minimum.
Set view for set variables
bool contains(int i) const
Test whether i is in the greatest lower bound.
bool lubAny(const Delta &d) const
Test whether arbitrary values got pruned from lub.
bool glbAny(const Delta &d) const
Test whether arbitrary values got pruned from glb.
unsigned int unknownSize(void) const
Return the number of unknown elements.
SetView(void)
Default constructor.
ModEvent intersectI(Space &home, I &iter)
Intersect least upper bound with range sequence described by i.
ModEvent include(Space &home, int i, int j)
Update greatest lower bound to include all elements between and including i and j.
int glbMax(void) const
Return maximum of the greatest lower bound.
unsigned int lubSize(void) const
Return the number of elements in the least upper bound.
int lubMax(void) const
Return maximum of the least upper bound.
int lubMin(void) const
Return minimum of the least upper bound.
int lubMinN(unsigned int n) const
Return n-th smallest element of the least upper bound.
int glbMin(void) const
Return minimum of the greatest lower bound.
static ModEvent modevent(const Delta &d)
Return modification event.
unsigned int cardMin(void) const
Return minimum cardinality.
unsigned int cardMax(void) const
Return maximum cardinality.
unsigned int glbSize(void) const
Return the number of elements in the greatest lower bound.
bool notContains(int i) const
Test whether i is not in the least upper bound.
ModEvent intersect(Space &home, int i, int j)
Update least upper bound to contain at most all elements between and including i and j.
ModEvent excludeI(Space &home, I &i)
Remove range sequence described by i from least upper bound.
ModEvent exclude(Space &home, int i, int j)
Restrict least upper bound to not contain all elements between and including i and j.
ModEvent includeI(Space &home, I &i)
Include range sequence described by i in greatest lower bound.
VarImp * varimp(void) const
Return variable implementation of variable.
Base-class for variable implementation views.
static ModEvent modevent(const Delta &d)
Gecode toplevel namespace
Post propagator for SetVar SetOpType SetVar y
Post propagator for SetVar x
int ModEvent
Type for modification events.