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

Method getAlternative

gecode/gist/spacenode.hpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 forceinline int
169 SpaceNode::getAlternative(const NodeAllocator& na) const {
170 SpaceNode* p = getParent(na);
171 if (p == nullptr)
172 return -1;
173 for (int i=static_cast<int>(p->getNumberOfChildren()); i--;)
174 if (p->getChild(na,i) == this)
175 return i;
176 GECODE_NEVER;
177 return -1;
178 }
179
180 forceinline const Choice*
181 SpaceNode::getChoice(void) {

Callers 9

labelPathMethod · 0.80
processCurrentNodeMethod · 0.80
nodecursor.hppFile · 0.80
inspectCurrentNodeMethod · 0.80
navLeftMethod · 0.80
navRightMethod · 0.80
mousePressEventMethod · 0.80
recomputeMethod · 0.80

Calls 2

getNumberOfChildrenMethod · 0.80
getChildMethod · 0.45

Tested by

no test coverage detected