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

Method getChild

gecode/gist/node.hpp:194–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 Node::isUndetermined(void) const { return getTag() == UNDET; }
193
194 forceinline int
195 Node::getChild(int n) const {
196 assert(getTag() != UNDET && getTag() != LEAF);
197 if (getTag() == TWO_CHILDREN) {
198 assert(n != 1 || noOfChildren <= 0);
199 return n == 0 ? getFirstChild() : -noOfChildren;
200 }
201 assert(n < noOfChildren);
202 return static_cast<int*>(getPtr())[n];
203 }
204
205 forceinline VisualNode*
206 Node::getChild(const NodeAllocator& na, int n) const {

Callers 12

findNodeMethod · 0.45
getIndexMethod · 0.45
moveUpwardsMethod · 0.45
moveDownwardsMethod · 0.45
moveSidewardsMethod · 0.45
runMethod · 0.45
inspectPathMethod · 0.45
navDownMethod · 0.45
navLeftMethod · 0.45
navRightMethod · 0.45
getAlternativeMethod · 0.45
recomputeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected