MCPcopy Create free account
hub / github.com/Gecode/gecode / advise

Method advise

gecode/kernel/branch/action.hpp:440–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438
439 template<class View, bool p, bool f>
440 ExecStatus
441 Action::Recorder<View,p,f>::advise(Space& home, Advisor& _a, const Delta&) {
442 Idx& a = static_cast<Idx&>(_a);
443 if (p) {
444 a.propagate();
445 return ES_NOFIX;
446 } else {
447 return x[a.idx()].assigned() ? home.ES_FIX_DISPOSE(c,a) : ES_FIX;
448 }
449 }
450
451 template<class View, bool p, bool f>
452 void

Callers

nothing calls this directly

Calls 5

ES_FIX_DISPOSEMethod · 0.80
propagateMethod · 0.45
assignedMethod · 0.45
idxMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected