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

Method uniqueKey

Engine/source/console/arrayObject.cpp:384–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382//-----------------------------------------------------------------------------
383
384void ArrayObject::uniqueKey()
385{
386 for(S32 i=0; i<mArray.size(); i++)
387 {
388 for(S32 j=i+1; j<mArray.size(); j++)
389 {
390 if( isEqual( mArray[i].key, mArray[j].key ) )
391 {
392 erase(j);
393 j--;
394 }
395 }
396 }
397}
398
399//-----------------------------------------------------------------------------
400

Callers 3

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected