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

Method addPath

physx/samples/samplebase/TestGroup.cpp:167–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167Test::TestGroup* Test::TestGroup::addPath(SampleArray<TestGroup*>& path)
168{
169 if (path.size() == 0)
170 return NULL;
171
172 TestGroup* current = this;
173 for (unsigned i = 0; i < path.size(); i++)
174 {
175 TestGroup* pathGroup = path[i];
176 TestGroup* child = current->getChildByName(pathGroup->getName());
177 if (!child)
178 {
179 child = new TestGroup(pathGroup);
180 current->addGroup(child);
181 }
182 current = child;
183 }
184
185 return current;
186}
187
188Test::TestGroup* Test::TestGroup::getNextChild(TestGroup& current)
189{

Callers

nothing calls this directly

Calls 4

getChildByNameMethod · 0.80
addGroupMethod · 0.80
sizeMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected