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

Method purge

gecode/gist/spacenode.hpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 forceinline void
120 SpaceNode::purge(const NodeAllocator& na) {
121 if (!isRoot() && (getStatus() != SOLVED || !na.bab())) {
122 // only delete copies from solutions if we are not in BAB
123 if (Support::marked(copy))
124 delete static_cast<Space*>(Support::unmark(copy));
125 else
126 delete copy;
127 copy = nullptr;
128 }
129 }
130
131
132 forceinline bool

Callers 3

processCurrentNodeMethod · 0.45
runMethod · 0.45
inspectCurrentNodeMethod · 0.45

Calls 3

markedFunction · 0.85
unmarkFunction · 0.85
babMethod · 0.80

Tested by

no test coverage detected