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

Method sizeRecursive

Engine/source/console/simSet.cpp:262–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

simSet.cppFile · 0.80

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected