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

Method findObject

Engine/source/console/simSet.cpp:430–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428//-----------------------------------------------------------------------------
429
430SimObject* SimSet::findObject( SimObject* object )
431{
432 bool found = false;
433 lock();
434 for( SimSet::iterator iter = begin(); iter != end(); ++ iter )
435 if( *iter == object )
436 {
437 found = true;
438 break;
439 }
440 unlock();
441
442 if( found )
443 return object;
444
445 return NULL;
446}
447
448//-----------------------------------------------------------------------------
449

Callers 2

execMethod · 0.45
findObjectFunction · 0.45

Calls 5

beginFunction · 0.85
endFunction · 0.85
lookupnMethod · 0.80
getNameMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected