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

Method duplicate

Engine/source/console/arrayObject.cpp:401–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399//-----------------------------------------------------------------------------
400
401void ArrayObject::duplicate(ArrayObject* obj)
402{
403 empty();
404 for(S32 i=0; i<obj->count(); i++)
405 {
406 const String& tempval = obj->getValueFromIndex(i);
407 const String& tempkey = obj->getKeyFromIndex(i);
408 push_back(tempkey, tempval);
409 }
410 mCurrentIndex = obj->getCurrent();
411}
412
413//-----------------------------------------------------------------------------
414

Callers 1

arrayObject.cppFile · 0.80

Calls 2

emptyFunction · 0.50
countMethod · 0.45

Tested by

no test coverage detected