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

Method getChild

contribs/qecode/Strategy.cc:134–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134Strategy Strategy::getChild(int i) {
135 if (i<0 || i>=degree() ) {cout<<"Child "<<i<<" does not exist"<<endl;abort();}
136 return imp->nodes[i];
137}
138
139Strategy Strategy::getSubStrategy(vector<int> position) {
140 if (position.empty()) return *this;

Callers 8

getValMethod · 0.45
attachMethod · 0.45
returnWorkMethod · 0.45
printStrFunction · 0.45
printStrFunction · 0.45
listAssignmentsFunction · 0.45
printStrFunction · 0.45
printStrFunction · 0.45

Calls 1

degreeFunction · 0.85

Tested by 1

printStrFunction · 0.36