
Base-class for derived views. More...
#include <view.hpp>
Public Types | |
| typedef View::VarImpType | VarImpType |
| The variable implementation type belonging to the View. More... | |
| typedef View::VarType | VarType |
| The variable type belonging to the View. More... | |
Protected Member Functions | |
| DerivedView (void) | |
| Default constructor. More... | |
| DerivedView (const View &y) | |
| Initialize with view y. More... | |
Protected Attributes | |
| View | x |
| View from which this view is derived. More... | |
Generic view information | |
| static bool | varderived (void) |
| Return whether this view is derived from a VarImpView. More... | |
| VarImpType * | varimp (void) const |
| Return variable implementation of view. More... | |
| View | base (void) const |
| Return view from which this view is derived. More... | |
| unsigned int | degree (void) const |
| Return degree (number of subscribed propagators) More... | |
| double | afc (const Space &home) const |
| Return accumulated failure count. More... | |
Domain tests | |
| bool | assigned (void) const |
| Test whether view is assigned. More... | |
View-dependent propagator support | |
| static void | schedule (Space &home, Propagator &p, ModEvent me) |
| Schedule propagator p with modification event me. More... | |
| static ModEvent | me (const ModEventDelta &med) |
| Return modification event for view type in med. More... | |
| static ModEventDelta | med (ModEvent) |
| Translate modification event me to modification event delta for view. More... | |
Dependencies | |
| void | subscribe (Space &home, Propagator &p, PropCond pc, bool schedule=true) |
| Subscribe propagator p with propagation condition pc to view. More... | |
| void | cancel (Space &home, Propagator &p, PropCond pc) |
| Cancel subscription of propagator p with propagation condition pc to view. More... | |
| void | subscribe (Space &home, Advisor &a) |
| Subscribe advisor a to view. More... | |
| void | cancel (Space &home, Advisor &a) |
| Cancel subscription of advisor a. More... | |
Delta information for advisors | |
| static ModEvent | modevent (const Delta &d) |
| Return modification event. More... | |
Cloning | |
| void | update (Space &home, bool share, DerivedView< View > &y) |
| Update this view to be a clone of view y. More... | |
Base-class for derived views.
| typedef View::VarImpType Gecode::DerivedView< View >::VarImpType |
| typedef View::VarType Gecode::DerivedView< View >::VarType |
|
inlineprotected |
|
inlineprotected |
|
inlinestatic |
Return whether this view is derived from a VarImpView.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
protected |