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