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

Method reset

gecode/search/par/dfs.hpp:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 */
83 template<class Tracer>
84 forceinline void
85 DFS<Tracer>::Worker::reset(Space* s, unsigned int ngdl) {
86 delete cur;
87 tracer.round();
88 path.reset((s != nullptr) ? ngdl : 0);
89 d = 0;
90 idle = false;
91 if ((s == nullptr) || (s->status(*this) == SS_FAILED)) {
92 delete s;
93 cur = nullptr;
94 } else {
95 cur = s;
96 }
97 Search::Worker::reset();
98 }
99
100
101 /*

Callers 1

~WorkerMethod · 0.45

Calls 5

roundMethod · 0.45
statusMethod · 0.45
acquireMethod · 0.45
waitMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected