MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / sizeRecursive

Method sizeRecursive

Engine/source/console/simSet.cpp:260–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258//-----------------------------------------------------------------------------
259
260U32 SimSet::sizeRecursive()
261{
262 U32 count = 0;
263
264 for ( iterator i = begin(); i != end(); i++ )
265 {
266 count++;
267
268 SimSet* childSet = dynamic_cast<SimSet*>(*i);
269 if ( childSet )
270 count += childSet->sizeRecursive();
271 }
272
273 return count;
274}
275
276//-----------------------------------------------------------------------------
277

Callers 1

simSet.cppFile · 0.80

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected