MCPcopy Create free account
hub / github.com/SpartanJ/eepp / remove

Method remove

src/eepp/ui/models/modelselection.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool ModelSelection::remove( const ModelIndex& index ) {
64 eeASSERT( index.isValid() );
65 Lock l( mMutex );
66 auto contains = std::find( mIndexes.begin(), mIndexes.end(), index );
67 if ( contains == mIndexes.end() )
68 return false;
69 mIndexes.erase( contains );
70 mView->notifySelectionChange();
71 return true;
72}
73
74void ModelSelection::clear( bool notify ) {
75 Lock l( mMutex );

Callers 1

sortMappingMethod · 0.45

Calls 6

findFunction · 0.85
notifySelectionChangeMethod · 0.80
isValidMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected