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

Method crop

Engine/source/console/arrayObject.cpp:415–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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