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

Method uniqueKey

Engine/source/console/arrayObject.cpp:390–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388//-----------------------------------------------------------------------------
389
390void ArrayObject::uniqueKey()
391{
392 for(S32 i=0; i<mArray.size(); i++)
393 {
394 for(S32 j=i+1; j<mArray.size(); j++)
395 {
396 if( isEqual( mArray[i].key, mArray[j].key ) )
397 {
398 erase(j);
399 j--;
400 }
401 }
402 }
403}
404
405//-----------------------------------------------------------------------------
406

Callers 1

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected