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

Method uniqueValue

Engine/source/console/arrayObject.cpp:373–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371//-----------------------------------------------------------------------------
372
373void ArrayObject::uniqueValue()
374{
375 for(S32 i=0; i<mArray.size(); i++)
376 {
377 for(S32 j=i+1; j<mArray.size(); j++)
378 {
379 if ( isEqual( mArray[i].value, mArray[j].value ) )
380 {
381 erase(j);
382 j--;
383 }
384 }
385 }
386}
387
388//-----------------------------------------------------------------------------
389

Callers 1

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected