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

Method crop

Engine/source/console/arrayObject.cpp:421–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419//-----------------------------------------------------------------------------
420
421void ArrayObject::crop( ArrayObject *obj )
422{
423 for( S32 i = 0; i < obj->count(); i++ )
424 {
425 const String &tempkey = obj->getKeyFromIndex( i );
426 for( S32 j = 0; j < mArray.size(); j++ )
427 {
428 if( isEqual( mArray[j].key, tempkey ) )
429 {
430 mArray.erase( j );
431 j--;
432 }
433 }
434 }
435}
436
437//-----------------------------------------------------------------------------
438

Callers 1

arrayObject.cppFile · 0.80

Calls 4

isEqualFunction · 0.85
countMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected