MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / getNextLeaf

Method getNextLeaf

physx/samples/samplebase/TestGroup.cpp:280–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280Test::TestGroup* Test::TestGroup::getNextLeaf(TestGroup* current)
281{
282 PX_ASSERT(current);
283
284 if (current == this)
285 return NULL;
286
287 TestGroup* parent = current->getParent();
288 if (!parent)
289 return NULL;
290
291 TestGroup* nextSibling = parent->getNextChild(*current);
292 if (nextSibling)
293 return nextSibling->getFirstLeaf();
294 else
295 return getNextLeaf(parent);
296}
297
298Test::TestGroup* Test::TestGroup::getPreviousLeaf(TestGroup* current)
299{

Callers

nothing calls this directly

Calls 3

getNextChildMethod · 0.80
getParentMethod · 0.45
getFirstLeafMethod · 0.45

Tested by

no test coverage detected