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

Function disposenext

gecode/search/nogoods.cpp:39–46  ·  view source on GitHub ↗

Help function to cancel and dispose a no-good literal

Source from the content-addressed store, hash-verified

37
38 /// Help function to cancel and dispose a no-good literal
39 forceinline NGL*
40 disposenext(NGL* ngl, Space& home, Propagator& p, bool c) {
41 NGL* n = ngl->next();
42 if (c)
43 ngl->cancel(home,p);
44 home.rfree(ngl,ngl->dispose(home));
45 return n;
46 }
47
48 void
49 NoNGL::subscribe(Space&, Propagator&) {

Callers 2

propagateMethod · 0.85
disposeMethod · 0.85

Calls 4

nextMethod · 0.45
cancelMethod · 0.45
rfreeMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected