53 unsigned int degree(
void)
const;
56 double afc(
void)
const;
60 VarImpType*
varimp(
void)
const;
144 VarImpType*
varimp(
void)
const;
146 unsigned int degree(
void)
const;
148 double afc(
void)
const;
208 template<
class VarA,
class VarB>
212 template<
class ViewA,
class ViewB>
213 bool before(
const ViewA&
x,
const ViewB&
y);
241 VarImpType*
varimp(
void)
const;
243 View
base(
void)
const;
245 unsigned int degree(
void)
const;
247 double afc(
void)
const;
308 template<
class ViewA,
class ViewB>
314 template<
class Var,
class View>
320 template<
class ViewA,
class ViewB>
326 template<
class View,
class Var>
332 template<
class ViewA,
class ViewB>
338 template<
class VarA,
class VarB>
344 template<
class Var,
class View>
350 template<
class View,
class Var>
356 template<
class ViewA,
class ViewB>
416 View::schedule(home,p,me);
421 return View::me(med);
426 return View::med(me);
479 return x->assigned();
485 x->subscribe(home,p,pc,schedule);
490 x->cancel(home,p,pc);
495 x->reschedule(home,p,pc);
500 x->subscribe(home,a,fail);
505 x->cancel(home,a,fail);
510 VarImpType::schedule(home,p,me);
515 return VarImpType::me(med);
520 return VarImpType::med(me);
525 return VarImpType::modevent(d);
550 return View::varderived();
584 return View::schedule(home,p,me);
589 return View::me(med);
594 return View::med(me);
601 x.subscribe(home,p,pc,schedule);
611 x.reschedule(home,p,pc);
616 x.subscribe(home,a,fail);
621 x.cancel(home,a,fail);
626 return View::modevent(d);
641 template<
class ViewA,
class ViewB>
647 template<
class Var,
class View>
653 template<
class ViewA,
class ViewB>
659 template<
class Var,
class View>
665 template<
class View,
class Var>
677 template<
class ViewA,
class ViewB>
688 template<
class ViewA,
class ViewB>
691 return x.varimp() < y.varimp();
700 template<
class ViewA,
class ViewB>
705 template<
class Var,
class View>
710 template<
class ViewA,
class ViewB>
715 template<
class View,
class Var>
720 template<
class ViewA,
class ViewB>
725 template<
class VarA,
class VarB>
728 return (static_cast<VarImpBase*>(x.
varimp()) ==
729 static_cast<VarImpBase*>(y.
varimp()));
731 template<
class Var,
class View>
734 return (View::varderived() &&
735 static_cast<VarImpBase*>(x.
varimp()) ==
736 static_cast<VarImpBase*>(y.
varimp()));
738 template<
class View,
class Var>
741 return (View::varderived() &&
742 static_cast<VarImpBase*>(x.
varimp()) ==
743 static_cast<VarImpBase*>(y.
varimp()));
745 template<
class ViewA,
class ViewB>
748 return (ViewA::varderived() && ViewB::varderived() &&
749 static_cast<VarImpBase*>(x.
varimp()) ==
750 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)
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 same(const ConstView< ViewA > &, const ConstView< ViewB > &)
Test whether two views are the same.
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.
bool before(const ViewA &x, const ViewB &y)
Base-class for variable implementation views.
Var VarType
The variable type corresponding to the view.
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.
struct Gecode::@585::NNF::@62::@64 a
For atomic nodes.
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 shared(const ConstView< ViewA > &, const ConstView< ViewB > &)
Test whether views share same variable.
bool same(const DerivedView< ViewA > &x, const DerivedView< ViewB > &y)
Test whether two views are the same.
Gecode toplevel namespace
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)
static ModEventDelta med(ModEvent me)
Translate modification event me to modification event delta for view.