53 unsigned int degree(
void)
const;
56 double afc(
void)
const;
60 VarImpType*
varimp(
void)
const;
62 unsigned int id(
void)
const;
154 VarImpType*
varimp(
void)
const;
156 unsigned int degree(
void)
const;
158 double afc(
void)
const;
159 #ifdef GECODE_HAS_CBS 160 unsigned int id(
void)
const;
249 VarImpType*
varimp(
void)
const;
251 View
base(
void)
const;
253 unsigned int degree(
void)
const;
255 double afc(
void)
const;
256 #ifdef GECODE_HAS_CBS 257 unsigned int id(
void)
const;
316 bool operator <(const DerivedView<View>&
y)
const;
326 template<
class ViewA,
class ViewB>
332 template<
class Var,
class View>
338 template<
class ViewA,
class ViewB>
344 template<
class View,
class Var>
350 template<
class ViewA,
class ViewB>
356 template<
class VarA,
class VarB>
362 template<
class Var,
class View>
368 template<
class View,
class Var>
374 template<
class ViewA,
class ViewB>
402 #ifdef GECODE_HAS_CBS 441 View::schedule(home,p,me);
446 return View::me(med);
451 return View::med(me);
507 #ifdef GECODE_HAS_CBS 517 return x->assigned();
523 x->subscribe(home,p,pc,schedule);
528 x->cancel(home,p,pc);
533 x->reschedule(home,p,pc);
538 x->subscribe(home,a,fail);
543 x->cancel(home,a,fail);
548 VarImpType::schedule(home,p,me);
553 return VarImpType::me(med);
558 return VarImpType::med(me);
563 return VarImpType::modevent(d);
573 return this->varimp() < y.
varimp();
594 return View::varderived();
619 #ifdef GECODE_HAS_CBS 635 return View::schedule(home,p,me);
640 return View::me(med);
645 return View::med(me);
652 x.subscribe(home,p,pc,schedule);
662 x.reschedule(home,p,pc);
667 x.subscribe(home,a,fail);
672 x.cancel(home,a,fail);
677 return View::modevent(d);
697 template<
class ViewA,
class ViewB>
703 template<
class Var,
class View>
709 template<
class ViewA,
class ViewB>
715 template<
class Var,
class View>
721 template<
class Var,
class View>
727 template<
class ViewX,
class ViewY>
733 template<
class View,
class Var>
739 template<
class ViewX,
class ViewY>
745 template<
class VarX,
class VarY>
752 template<
class ViewA,
class ViewB>
758 template<
class Var,
class View>
764 template<
class ViewA,
class ViewB>
770 template<
class Var,
class View>
776 template<
class Var,
class View>
782 template<
class ViewX,
class ViewY>
788 template<
class View,
class Var>
794 template<
class ViewX,
class ViewY>
800 template<
class VarX,
class VarY>
812 template<
class ViewA,
class ViewB>
817 template<
class Var,
class View>
822 template<
class ViewA,
class ViewB>
827 template<
class View,
class Var>
832 template<
class ViewA,
class ViewB>
837 template<
class VarA,
class VarB>
840 return (static_cast<VarImpBase*>(x.
varimp()) ==
841 static_cast<VarImpBase*>(y.
varimp()));
843 template<
class Var,
class View>
846 return (View::varderived() &&
847 static_cast<VarImpBase*>(x.
varimp()) ==
848 static_cast<VarImpBase*>(y.
varimp()));
850 template<
class View,
class Var>
853 return (View::varderived() &&
854 static_cast<VarImpBase*>(x.
varimp()) ==
855 static_cast<VarImpBase*>(y.
varimp()));
857 template<
class ViewA,
class ViewB>
860 return (ViewA::varderived() && ViewB::varderived() &&
861 static_cast<VarImpBase*>(x.
varimp()) ==
862 static_cast<VarImpBase*>(y.
varimp()));
VarImpType * varimp(void) const
Return dummy variable implementation of view.
View base(void) const
Return view from which this view is derived.
View::VarType VarType
The variable type corresponding to the constant view.
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to view.
static ModEvent modevent(const Delta &d)
Return modification event.
bool assigned(void) const
Test whether view is assigned.
void cancel(Space &home, Propagator &p, IntSet &y)
bool operator==(const VarImpView< VarX > &x, const VarImpView< VarY > &y)
Test whether two views are the same.
const ModEvent ME_GEN_ASSIGNED
Generic modification event: variable is assigned a value.
void reschedule(Space &home, Propagator &p, PropCond pc)
Re-schedule propagator p with propagation condition pc.
int ModEvent
Type for modification events.
void varimp(VarImpType *y)
Set variable implementation to y.
Base-class for propagators.
bool shared(const DerivedView< ViewA > &, const DerivedView< ViewB > &)
Test whether views share same variable.
VarImpView(void)
Default constructor.
Base-class for constant views.
Base-class for derived views.
void cancel(Space &home, Propagator &p, PropCond pc)
Cancel subscription of propagator p with propagation condition pc to view.
unsigned int degree(void) const
Return degree (number of subscribed propagators and advisors)
View::VarImpType VarImpType
The variable implementation type corresponding to the constant view.
bool operator<(const ConstView &y) const
Whether this view comes before view y (arbitray order)
int p
Number of positive literals for node type.
static ModEvent me(const ModEventDelta &med)
Return modification event for view type in med.
int PropCond
Type for propagation conditions.
void subscribe(Space &home, Propagator &p, IntSet &y)
static bool varderived(void)
Return whether this view is derived from a VarImpView.
Base-class for variable implementation views.
Var VarType
The variable type corresponding to the view.
bool operator!=(const VarImpView< VarX > &x, const VarImpView< VarY > &y)
Test whether two views are not the same.
static void schedule(Space &home, Propagator &p, ModEvent me)
Schedule propagator p with modification event me.
Post propagator for SetVar SetOpType SetVar y
Var::VarImpType VarImpType
The variable implementation type corresponding to the view.
View::VarType VarType
The variable type belonging to the View.
const double base
Base for geometric restart sequence.
Base class for variables.
Node * x
Pointer to corresponding Boolean expression node.
Generic domain change information to be supplied to advisors.
View::VarImpType VarImpType
The variable implementation type belonging to the View.
double afc(void) const
Return accumulated failure count.
bool assigned(View x, int v)
Whether x is assigned to value v.
const ModEvent ME_GEN_NONE
Generic modification event: no modification.
Post propagator for SetVar x
View x
View from which this view is derived.
void update(Space &home, ConstView &y)
Update this view to be a clone of view y.
VarImpType * varimp(void) const
Return variable implementation of view.
bool operator<(const FloatVal &x, const FloatVal &y)
Gecode toplevel namespace
bool shared(ViewArray< ViewX > x, ViewArray< ViewY > y)
void reschedule(Space &home, Propagator &p, IntSet &y)
VarImpType * x
Pointer to variable implementation.
int ModEventDelta
Modification event deltas.
void update(IntSet &y, Space &home, IntSet &py)
struct Gecode::@593::NNF::@62::@64 a
For atomic nodes.
static ModEventDelta med(ModEvent me)
Translate modification event me to modification event delta for view.