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

Method forEachDocSharedPtr

src/eepp/ui/tools/uicodeeditorsplitter.cpp:913–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913void UICodeEditorSplitter::forEachDocSharedPtr(
914 std::function<void( std::shared_ptr<TextDocument> )> run ) const {
915 std::unordered_map<TextDocument*, std::shared_ptr<TextDocument>> docs;
916 forEachEditor( [&docs]( UICodeEditor* editor ) {
917 docs.insert( { editor->getDocumentRef().get(), editor->getDocumentRef() } );
918 } );
919 for ( const auto& doc : docs )
920 run( doc.second );
921}
922
923void UICodeEditorSplitter::forEachTabWidget( std::function<void( UITabWidget* )> run ) const {
924 for ( auto widget : mTabWidgets )

Callers 2

saveProjectMethod · 0.80
doGlobalSearchMethod · 0.80

Calls 3

getDocumentRefMethod · 0.80
insertMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected