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

Method detach

contribs/qecode/Strategy.cc:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void Strategy::detach(Strategy son) {
180
181 vector<Strategy>::iterator it = imp->nodes.begin();
182 while (it != (imp->nodes.end()) && ( (*it).id() != son.id())) {
183 it++;}
184 if ( it != imp->nodes.end()) {
185 todosUpdate(0-((*it).imp->todos));
186 (*it).imp->father=NULL;
187 imp->nodes.erase(it);
188 }
189}
190
191
192void Strategy::detach(unsigned int i) {

Callers 4

returnWorkMethod · 0.80
updateTrueMethod · 0.80
updateFalseMethod · 0.80
RunMethod · 0.80

Calls 5

todosUpdateFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
idMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected