MCPcopy Create free account
hub / github.com/MITK/MITK / Event

Method Event

Modules/CppMicroServices/test/usModuleHooksTest.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69public:
70
71 void Event(const ModuleEvent& event, ShrinkableVector<ModuleContext*>& contexts) override
72 {
73 if (event.GetType() == ModuleEvent::LOADING || event.GetType() == ModuleEvent::UNLOADING)
74 {
75 contexts.erase(std::remove(contexts.begin(), contexts.end(), GetModuleContext()), contexts.end());
76 }
77 }
78};
79
80void TestFindHook()

Callers 2

Calls 5

GetModuleContextFunction · 0.85
GetTypeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected