Gecode::DerivedView Gecode::Int::CachedView< View > Gecode::Set::CachedView< View > Gecode::Set::ComplementView< View > view.hpp class View View
Generic view information
bool forceinline bool Gecode::DerivedView< View >::varderived (void) varderived void Return whether this view is derived from a VarImpView. VarImpType * forceinline View::VarImpType * Gecode::DerivedView< View >::varimp (void) const varimp void Return variable implementation of view. View forceinline View Gecode::DerivedView< View >::base (void) const base void Return view from which this view is derived. unsigned int forceinline unsigned int Gecode::DerivedView< View >::degree (void) const degree void Return degree (number of subscribed propagators) double forceinline double Gecode::DerivedView< View >::afc (const Space &home) const afc const Space & home Return accumulated failure count.
Domain tests
bool forceinline bool Gecode::DerivedView< View >::assigned (void) const assigned void Test whether view is assigned.
View-dependent propagator support
void forceinline void Gecode::DerivedView< View >::schedule (Space &home, Propagator &p, ModEvent me) schedule Space & home Propagator & p ModEvent me Schedule propagator p with modification event me. ModEvent forceinline ModEvent Gecode::DerivedView< View >::me (const ModEventDelta &med) me const ModEventDelta & med Return modification event for view type in med. ModEventDelta forceinline ModEventDelta Gecode::DerivedView< View >::med (ModEvent) med ModEvent me Translate modification event me to modification event delta for view.
Dependencies
void forceinline void Gecode::DerivedView< View >::subscribe (Space &home, Propagator &p, PropCond pc, bool schedule=true) subscribe Space & home Propagator & p PropCond pc bool schedule true Subscribe propagator p with propagation condition pc to view. In case schedule is false, the propagator is just subscribed but not scheduled for execution (this must be used when creating subscriptions during propagation). void forceinline void Gecode::DerivedView< View >::cancel (Space &home, Propagator &p, PropCond pc) cancel Space & home Propagator & p PropCond pc Cancel subscription of propagator p with propagation condition pc to view. void forceinline void Gecode::DerivedView< View >::subscribe (Space &home, Advisor &a) subscribe Space & home Advisor & a Subscribe advisor a to view. void forceinline void Gecode::DerivedView< View >::cancel (Space &home, Advisor &a) cancel Space & home Advisor & a Cancel subscription of advisor a.
Delta information for advisors
ModEvent forceinline ModEvent Gecode::DerivedView< View >::modevent (const Delta &d) modevent const Delta & d Return modification event.
Cloning
void forceinline void Gecode::DerivedView< View >::update (Space &home, bool share, DerivedView< View > &y) update Space & home bool share DerivedView< View > & y Update this view to be a clone of view y.
View::VarImpType typedef View::VarImpType Gecode::DerivedView< View >::VarImpType VarImpType The variable implementation type belonging to the View. View::VarType typedef View::VarType Gecode::DerivedView< View >::VarType VarType The variable type belonging to the View. View View Gecode::DerivedView< View >::x x View from which this view is derived. forceinline Gecode::DerivedView< View >::DerivedView (void) DerivedView void Default constructor. forceinline Gecode::DerivedView< View >::DerivedView (const View &y) DerivedView const View & y Initialize with view y. Base-class for derived views. x Gecode::DerivedViewafc Gecode::DerivedViewassigned Gecode::DerivedViewbase Gecode::DerivedViewcancel Gecode::DerivedViewcancel Gecode::DerivedViewdegree Gecode::DerivedViewDerivedView Gecode::DerivedViewDerivedView Gecode::DerivedViewme Gecode::DerivedViewmed Gecode::DerivedViewmodevent Gecode::DerivedViewschedule Gecode::DerivedViewsubscribe Gecode::DerivedViewsubscribe Gecode::DerivedViewupdate Gecode::DerivedViewvarderived Gecode::DerivedViewvarimp Gecode::DerivedViewVarImpType Gecode::DerivedViewVarType Gecode::DerivedViewx