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

Method clone

Engine/source/console/simSet.cpp:546–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544//-----------------------------------------------------------------------------
545
546SimSet* SimSet::clone()
547{
548 // Clone the set object.
549
550 SimObject* object = Parent::clone();
551 SimSet* set = dynamic_cast< SimSet* >( object );
552 if( !set )
553 {
554 object->deleteObject();
555 return NULL;
556 }
557
558 // Add all object in the set.
559
560 for( iterator iter = begin(); iter != end(); ++ iter )
561 set->addObject( *iter );
562
563 return set;
564}
565
566//-----------------------------------------------------------------------------
567

Callers 3

acquireAsPrivateAssetMethod · 0.45

Calls 4

beginFunction · 0.85
endFunction · 0.85
deleteObjectMethod · 0.45
addObjectMethod · 0.45

Tested by

no test coverage detected