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

Method enable

gecode/kernel/core.cpp:988–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986 }
987
988 void
989 PropagatorGroup::enable(Space& home, bool s) {
990 if (home.failed())
991 return;
992 if (s) {
993 Space::Propagators ps(home);
994 while (ps()) {
995 Propagator& p = ps.propagator();
996 ++ps;
997 if (in(p.group())) {
998 p.enable(home);
999 p.reschedule(home);
1000 }
1001 }
1002 } else {
1003 for (Space::Propagators ps(home); ps(); ++ps)
1004 if (in(ps.propagator().group()))
1005 ps.propagator().enable(home);
1006 }
1007 }
1008
1009
1010 BrancherGroup&

Callers

nothing calls this directly

Calls 5

propagatorMethod · 0.80
groupMethod · 0.80
inFunction · 0.50
failedMethod · 0.45
rescheduleMethod · 0.45

Tested by

no test coverage detected