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

Method getChildByName

physx/samples/samplebase/TestGroup.cpp:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206Test::TestGroup* Test::TestGroup::getChildByName(const char* name, size_t count)
207{
208 if (MAX_COUNT == count)
209 count = strlen(name) + 1;
210 for (unsigned i = 0; i < mChildren.size(); i++)
211 {
212 if (strncmp(mChildren[i]->getName(), name, count) == 0)
213 return mChildren[i];
214 }
215 return NULL;
216}
217
218Test::TestGroup* Test::TestGroup::getFirstTest()
219{

Callers 2

addSampleMethod · 0.80
addPathMethod · 0.80

Calls 3

strncmpFunction · 0.85
sizeMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected