Gecode::ConstView view.hpp class View View
Generic view information
unsigned int forceinline unsigned int Gecode::ConstView< View >::degree (void) const degree void Return degree (number of subscribed propagators and advisors) double forceinline double Gecode::ConstView< View >::afc (const Space &home) const afc const Space & home Return accumulated failure count. VarImpType * forceinline View::VarImpType * Gecode::ConstView< View >::varimp (void) const varimp void Return dummy variable implementation of view. bool forceinline bool Gecode::ConstView< View >::varderived (void) varderived void Return whether this view is derived from a VarImpView.
Domain tests
bool forceinline bool Gecode::ConstView< View >::assigned (void) const assigned void Test whether view is assigned.
View-dependent propagator support
void forceinline void Gecode::ConstView< 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::ConstView< View >::me (const ModEventDelta &med) me const ModEventDelta & med Return modification event for view type in med. ModEventDelta forceinline ModEventDelta Gecode::ConstView< View >::med (ModEvent me) med ModEvent me Translate modification event me to modification event delta for view.
Dependencies
void forceinline void Gecode::ConstView< 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::ConstView< 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::ConstView< View >::subscribe (Space &home, Advisor &a) subscribe Space & home Advisor & a Subscribe advisor a to view. void forceinline void Gecode::ConstView< View >::cancel (Space &home, Advisor &a) cancel Space & home Advisor & a Cancel subscription of advisor a.
Delta information for advisors
ModEvent forceinline ModEvent Gecode::ConstView< View >::modevent (const Delta &d) modevent const Delta & d Return modification event.
Cloning
void forceinline void Gecode::ConstView< View >::update (Space &home, bool share, ConstView &y) update Space & home bool share ConstView & y Update this view to be a clone of view y.
View::VarImpType typedef View::VarImpType Gecode::ConstView< View >::VarImpType VarImpType The variable implementation type corresponding to the constant view. View::VarType typedef View::VarType Gecode::ConstView< View >::VarType VarType The variable type corresponding to the constant view. Base-class for constant views. Gecode::ConstViewafc Gecode::ConstViewassigned Gecode::ConstViewcancel Gecode::ConstViewcancel Gecode::ConstViewdegree Gecode::ConstViewme Gecode::ConstViewmed Gecode::ConstViewmodevent Gecode::ConstViewschedule Gecode::ConstViewsubscribe Gecode::ConstViewsubscribe Gecode::ConstViewupdate Gecode::ConstViewvarderived Gecode::ConstViewvarimp Gecode::ConstViewVarImpType Gecode::ConstViewVarType