84 return x.one_none(home);
88 return x.zero_none(home);
171 NegBoolView::baseval(
int val)
const {
212 return x.base() ==
y.base();
Generic domain change information to be supplied to advisors.
Boolean view for Boolean variables.
bool zero(void) const
Test whether view is assigned to be zero.
bool one(void) const
Test whether view is assigned to be one.
ModEvent gr(Space &home, int n)
Restrict domain values to be greater than n.
BoolStatus status(void) const
Return current domain status.
bool zero(void) const
Test whether view is assigned to be zero.
bool one(void) const
Test whether view is assigned to be one.
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
bool none(void) const
Test whether view is not yet assigned.
ModEvent le(Space &home, int n)
Restrict domain values to be less than n.
unsigned int width(const Delta &d) const
Return width of values just pruned.
ModEvent one_none(Space &home)
Assign not yet assigned view to one.
bool any(const Delta &d) const
Test whether arbitrary values got pruned.
ModEvent lq(Space &home, int n)
Restrict domain values to be less or equal than n.
ModEvent nq(Space &home, int n)
Restrict domain values to be different from n.
int max(void) const
Return maximum of domain.
ModEvent eq(Space &home, int n)
Restrict domain values to be equal to n.
int min(void) const
Return minimum of domain.
ModEvent zero_none(Space &home)
Assign not yet assigned view to zero.
NegBoolView(void)
Default constructor.
int val(void) const
Return assigned value (only if assigned)
ViewRanges(void)
Default constructor.
void init(const View &x)
Initialize with ranges for view x.
ViewRanges(void)
Default constructor.
Range iterator for singleton range.
void init(int min, int max)
Initialize with range min to max.
Singleton(void)
Default constructor.
const Gecode::ModEvent ME_BOOL_NONE
Domain operation has not changed domain.
const Gecode::ModEvent ME_BOOL_FAILED
Domain operation has resulted in failure.
bool operator==(const CachedView< View > &x, const CachedView< View > &y)
unsigned int BoolStatus
Type for status of a Boolean variable.
bool operator!=(const CachedView< View > &x, const CachedView< View > &y)
Range and value iterators.
Gecode toplevel namespace
Post propagator for SetVar SetOpType SetVar y
Post propagator for SetVar x
int ModEvent
Type for modification events.