53 unsigned int degree(
void)
const;
56 double afc(
void)
const;
60 VarImpType*
varimp(
void)
const;
62 unsigned int id(
void)
const;
148 VarImpType*
varimp(
void)
const;
150 unsigned int degree(
void)
const;
152 double afc(
void)
const;
153 #ifdef GECODE_HAS_CBS 154 unsigned int id(
void)
const;
216 template<
class VarA,
class VarB>
220 template<
class ViewA,
class ViewB>
221 bool before(
const ViewA&
x,
const ViewB&
y);
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;
320 template<
class ViewA,
class ViewB>
326 template<
class Var,
class View>
332 template<
class ViewA,
class ViewB>
338 template<
class View,
class Var>
344 template<
class ViewA,
class ViewB>
350 template<
class VarA,
class VarB>
356 template<
class Var,
class View>
362 template<
class View,
class Var>
368 template<
class ViewA,
class ViewB>
396 #ifdef GECODE_HAS_CBS 435 View::schedule(home,p,me);
440 return View::me(med);
445 return View::med(me);
495 #ifdef GECODE_HAS_CBS 505 return x->assigned();
511 x->subscribe(home,p,pc,schedule);
516 x->cancel(home,p,pc);
521 x->reschedule(home,p,pc);
526 x->subscribe(home,a,fail);
531 x->cancel(home,a,fail);
536 VarImpType::schedule(home,p,me);
541 return VarImpType::me(med);
546 return VarImpType::med(me);
551 return VarImpType::modevent(d);
576 return View::varderived();
601 #ifdef GECODE_HAS_CBS 617 return View::schedule(home,p,me);
622 return View::me(med);
627 return View::med(me);
634 x.subscribe(home,p,pc,schedule);
644 x.reschedule(home,p,pc);
649 x.subscribe(home,a,fail);
654 x.cancel(home,a,fail);
659 return View::modevent(d);
674 template<
class ViewA,
class ViewB>
680 template<
class Var,
class View>
686 template<
class ViewA,
class ViewB>
692 template<
class Var,
class View>
698 template<
class View,
class Var>
710 template<
class ViewA,
class ViewB>
721 template<
class ViewA,
class ViewB>
724 return x.varimp() < y.varimp();
733 template<
class ViewA,
class ViewB>
738 template<
class Var,
class View>
743 template<
class ViewA,
class ViewB>
748 template<
class View,
class Var>
753 template<
class ViewA,
class ViewB>
758 template<
class VarA,
class VarB>
761 return (static_cast<VarImpBase*>(x.
varimp()) ==
762 static_cast<VarImpBase*>(y.
varimp()));
764 template<
class Var,
class View>
767 return (View::varderived() &&
768 static_cast<VarImpBase*>(x.
varimp()) ==
769 static_cast<VarImpBase*>(y.
varimp()));
771 template<
class View,
class Var>
774 return (View::varderived() &&
775 static_cast<VarImpBase*>(x.
varimp()) ==
776 static_cast<VarImpBase*>(y.
varimp()));
778 template<
class ViewA,
class ViewB>
781 return (ViewA::varderived() && ViewB::varderived() &&
782 static_cast<VarImpBase*>(x.
varimp()) ==
783 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.