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

Method GetUsedByModule

Modules/CppMicroServices/src/usServiceRegistry.cpp:318–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void ServiceRegistry::GetUsedByModule(Module* p,
319 std::vector<ServiceRegistrationBase>& res) const
320{
321 MutexLock lock(mutex);
322
323 for (std::vector<ServiceRegistrationBase>::const_iterator i = serviceRegistrations.begin();
324 i != serviceRegistrations.end(); ++i)
325 {
326 if (i->d->IsUsedByModule(p))
327 {
328 res.push_back(*i);
329 }
330 }
331}
332
333}

Callers 2

GetServicesInUseMethod · 0.80
RemoveModuleResourcesMethod · 0.80

Calls 3

IsUsedByModuleMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected