Gecode::Int::NegBoolView Class Reference
[Integer views]
Negated Boolean view.
More...
#include <view.hpp>
Related Functions | |
| (Note that these are not member functions.) | |
| template<class Char , class Traits > | |
| std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const NegBoolView &x) |
| Print negated Boolean view. | |
Domain status access | |
| static const int | BITS = BoolView::BITS |
| How many bits does the status have. | |
| static const BoolStatus | ZERO = BoolView::ONE |
| Status of domain assigned to zero. | |
| static const BoolStatus | ONE = BoolView::ZERO |
| Status of domain assigned to one. | |
| static const BoolStatus | NONE = BoolView::NONE |
| Status of domain not yet assigned. | |
| BoolStatus | status (void) const |
| Return current domain status. | |
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 | one (Space &home) |
| Try to assign view to one. | |
| ModEvent | zero (Space &home) |
| Try to assign view to zero. | |
| ModEvent | one_none (Space &home) |
| Assign not yet assigned view to one. | |
| ModEvent | 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 view. | |
| void | cancel (Space &home, Propagator &p, PropCond pc) |
| Cancel subscription of propagator p with propagation condition pc to view. | |
| void | subscribe (Space &home, Advisor &a) |
| Subscribe advisor a to view. | |
| void | cancel (Space &home, Advisor &a) |
| Cancel subscription of advisor a. | |
Delta information for advisors | |
| int | min (const Delta &d) const |
| Return minimum value just pruned. | |
| int | max (const Delta &d) const |
| Return maximum value just pruned. | |
| bool | any (const Delta &d) const |
| Test whether arbitrary values got pruned. | |
| static ModEvent | modevent (const Delta &d) |
| Return modification event. | |
| static bool | zero (const Delta &d) |
| Test whether a view has been assigned to zero. | |
| static bool | one (const Delta &d) |
| Test whether a view has been assigned to one. | |
Cloning | |
| void | update (Space &home, bool share, NegBoolView &x) |
| Update this view to be a clone of view x. | |
View-dependent propagator support | |
| static void | schedule (Space &home, Propagator &p, ModEvent me) |
| Schedule propagator p with modification event me. | |
| static ModEvent | me (const ModEventDelta &med) |
| Return modification event for view type in med. | |
| static ModEventDelta | med (ModEvent me) |
| Translate modification event me to modification event delta 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). | |
Detailed Description
Negated Boolean view.
A negated Boolean view
for a Boolean view
provides operations such that
behaves as
.
Definition at line 1572 of file view.hpp.
Constructor & Destructor Documentation
| Gecode::Int::NegBoolView::NegBoolView | ( | void | ) | [inline] |
| Gecode::Int::NegBoolView::NegBoolView | ( | const BoolView & | b | ) | [inline] |
Member Function Documentation
| void Gecode::Int::NegBoolView::init | ( | const BoolView & | b | ) | [inline] |
| BoolStatus Gecode::Int::NegBoolView::status | ( | void | ) | const [inline] |
| bool Gecode::Int::NegBoolView::zero | ( | void | ) | const [inline] |
| bool Gecode::Int::NegBoolView::one | ( | void | ) | const [inline] |
| bool Gecode::Int::NegBoolView::none | ( | void | ) | const [inline] |
| int Gecode::Int::NegBoolView::min | ( | void | ) | const [inline] |
| int Gecode::Int::NegBoolView::max | ( | void | ) | const [inline] |
| int Gecode::Int::NegBoolView::val | ( | void | ) | const [inline] |
| bool Gecode::Int::NegBoolView::assigned | ( | void | ) | const [inline] |
| void Gecode::Int::NegBoolView::schedule | ( | Space & | home, | |
| Propagator & | p, | |||
| ModEvent | me | |||
| ) | [inline, static] |
| ModEvent Gecode::Int::NegBoolView::me | ( | const ModEventDelta & | med | ) | [inline, static] |
| ModEventDelta Gecode::Int::NegBoolView::med | ( | ModEvent | me | ) | [inline, static] |
Translate modification event me to modification event delta for view.
Definition at line 147 of file neg-bool.hpp.
| void Gecode::Int::NegBoolView::subscribe | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc, | |||
| bool | process = true | |||
| ) | [inline] |
Subscribe propagator p with propagation condition pc to view.
In case process is false, the propagator is just subscribed but not processed for execution (this must be used when creating subscriptions during propagation).
Definition at line 157 of file neg-bool.hpp.
| void Gecode::Int::NegBoolView::cancel | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc | |||
| ) | [inline] |
Cancel subscription of propagator p with propagation condition pc to view.
Definition at line 162 of file neg-bool.hpp.
| int Gecode::Int::NegBoolView::min | ( | const Delta & | d | ) | const [inline] |
| int Gecode::Int::NegBoolView::max | ( | const Delta & | d | ) | const [inline] |
| bool Gecode::Int::NegBoolView::any | ( | const Delta & | d | ) | const [inline] |
| bool Gecode::Int::NegBoolView::zero | ( | const Delta & | d | ) | [inline, static] |
| bool Gecode::Int::NegBoolView::one | ( | const Delta & | d | ) | [inline, static] |
| void Gecode::Int::NegBoolView::update | ( | Space & | home, | |
| bool | share, | |||
| NegBoolView & | x | |||
| ) | [inline] |
Friends And Related Function Documentation
template<class Char , class Traits >
| std::basic_ostream< Char, Traits > & operator<< | ( | std::basic_ostream< Char, Traits > & | os, | |
| const NegBoolView & | x | |||
| ) | [related] |
| bool same | ( | const Int::NegBoolView & | x, | |
| const Int::NegBoolView & | y | |||
| ) | [related] |
| bool before | ( | const Int::NegBoolView & | x, | |
| const Int::NegBoolView & | y | |||
| ) | [related] |
Member Data Documentation
const int Gecode::Int::NegBoolView::BITS = BoolView::BITS [static] |
const BoolStatus Gecode::Int::NegBoolView::ZERO = BoolView::ONE [static] |
const BoolStatus Gecode::Int::NegBoolView::ONE = BoolView::ZERO [static] |
const BoolStatus Gecode::Int::NegBoolView::NONE = BoolView::NONE [static] |
The documentation for this class was generated from the following files:
- gecode/int/view.hpp (Revision: 9020)
- gecode/int/view/neg-bool.hpp (Revision: 8155)
