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

Method hasFather

contribs/qecode/Strategy.cc:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124bool Strategy::hasFather() {
125 if (imp->father != NULL) {
126 for (int i=0;i< imp->father->nodes.size();i++) {
127 if ((imp->father->nodes[i].imp) == imp)
128 return true;
129 }
130 }
131 return false;
132}
133
134Strategy Strategy::getChild(int i) {
135 if (i<0 || i>=degree() ) {cout<<"Child "<<i<<" does not exist"<<endl;abort();}

Callers 1

updateTrueMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected