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

Method duplicate

Engine/source/console/arrayObject.cpp:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405//-----------------------------------------------------------------------------
406
407void ArrayObject::duplicate(ArrayObject* obj)
408{
409 empty();
410 for(S32 i=0; i<obj->count(); i++)
411 {
412 const String& tempval = obj->getValueFromIndex(i);
413 const String& tempkey = obj->getKeyFromIndex(i);
414 push_back(tempkey, tempval);
415 }
416 mCurrentIndex = obj->getCurrent();
417}
418
419//-----------------------------------------------------------------------------
420

Callers 1

arrayObject.cppFile · 0.80

Calls 2

emptyFunction · 0.50
countMethod · 0.45

Tested by

no test coverage detected