Gecode::Int::NegBoolView Class Reference
[Integer views]
Inherits Gecode::DerivedViewBase< BoolView >.
Detailed Description
Negated Boolean view.
A negated Boolean view for a Boolean view
provides operations such that
behaves as
.
Definition at line 962 of file view.icc.
Constructors and initialization | |
NegBoolView (void) | |
Default constructor. | |
NegBoolView (const BoolView &b) | |
Initialize with Boolean view b. | |
void | init (const BoolView &b) |
Initialize with Boolean view b. | |
Boolean domain tests | |
bool | zero (void) const |
Test whether view is assigned to be zero. | |
bool | one (void) const |
Test whether view is assigned to be one. | |
bool | none (void) const |
Test whether view is not yet assigned. | |
Boolean assignment operations | |
ModEvent | t_one (Space *home) |
Try to assign view to one. | |
ModEvent | t_zero (Space *home) |
Try to assign view to zero. | |
void | t_one_none (Space *home) |
Assign not yet assigned view to one. | |
void | t_zero_none (Space *home) |
Assign not yet assigned view to zero. | |
Value access | |
int | min (void) const |
Return minimum of domain. | |
int | max (void) const |
Return maximum of domain. | |
int | val (void) const |
Return assigned value (only if assigned). | |
Domain tests | |
bool | assigned (void) const |
Test whether view is assigned. | |
Dependencies | |
void | subscribe (Space *home, Propagator *p, PropCond pc, bool process=true) |
Subscribe propagator p with propagation condition pc to variable. | |
void | cancel (Space *home, Propagator *p, PropCond pc) |
Cancel subscription of propagator p with propagation condition pc to view. | |
Cloning | |
void | update (Space *home, bool share, NegBoolView &x) |
Update this view to be a clone of view x. | |
Propagator modification events | |
static ModEvent | pme (const Propagator *p) |
Return modification event of propagator p for view. | |
static PropModEvent | pme (ModEvent me) |
Translate modification event me to propagator modification event for view. | |
View comparison | |
bool | same (const Int::NegBoolView &x, const Int::NegBoolView &y) |
Test whether views x and y are the same. | |
bool | before (const Int::NegBoolView &x, const Int::NegBoolView &y) |
Test whether view x comes before y (arbitrary order). | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &, const Gecode::Int::NegBoolView &) |
Print negated Boolean view. |
Constructor & Destructor Documentation
|
Default constructor.
|
|
Initialize with Boolean view b.
|
Member Function Documentation
|
Initialize with Boolean view b.
|
|
Test whether view is assigned to be zero.
|
|
Test whether view is assigned to be one.
|
|
Test whether view is not yet assigned.
|
|
Try to assign view to one.
|
|
Try to assign view to zero.
|
|
Assign not yet assigned view to one.
|
|
Assign not yet assigned view to zero.
|
|
Return minimum of domain.
|
|
Return maximum of domain.
|
|
Return assigned value (only if assigned).
|
|
Test whether view is assigned.
|
|
Return modification event of propagator p for view.
|
|
Translate modification event me to propagator modification event for view.
|
|
Subscribe propagator p with propagation condition pc to variable. In case process is false, the propagator is just subscribed but not processed for execution (this must be used when creating subscriptions during propagation). |
|
Cancel subscription of propagator p with propagation condition pc to view.
|
|
Update this view to be a clone of view x.
|
Friends And Related Function Documentation
|
Test whether views x and y are the same.
|
|
Test whether view x comes before y (arbitrary order).
|
|
Print negated Boolean view.
|
The documentation for this class was generated from the following files:
- gecode/int/view.icc (Revision: 3559)
- gecode/int/view/bool.icc (Revision: 3559)