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

Method attach

contribs/qecode/Strategy.cc:164–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void Strategy::attach(Strategy child) {
165 if (child.isDummy()) {
166 int todosToAdd = 0;
167
168 for (int i=0;i<child.degree();i++) {
169 this->attach(child.getChild(i));
170 }
171 }
172 else {
173 imp->nodes.push_back(child);
174 todosUpdate(child.imp->todos);
175 (child.imp)->father = this->imp;
176 }
177}
178
179void Strategy::detach(Strategy son) {
180

Callers 8

rsolveMethod · 0.80
rSolveMethod · 0.80
rSolveMethod · 0.80
rSolveMethod · 0.80
WorkManagerMethod · 0.80
returnWorkMethod · 0.80
updateTrueMethod · 0.80
updateFalseMethod · 0.80

Calls 3

todosUpdateFunction · 0.85
degreeMethod · 0.45
getChildMethod · 0.45

Tested by

no test coverage detected