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

Method uniqueValue

Engine/source/console/arrayObject.cpp:367–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365//-----------------------------------------------------------------------------
366
367void ArrayObject::uniqueValue()
368{
369 for(S32 i=0; i<mArray.size(); i++)
370 {
371 for(S32 j=i+1; j<mArray.size(); j++)
372 {
373 if ( isEqual( mArray[i].value, mArray[j].value ) )
374 {
375 erase(j);
376 j--;
377 }
378 }
379 }
380}
381
382//-----------------------------------------------------------------------------
383

Callers 1

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected