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

Method GetRegisteredByModule

Modules/CppMicroServices/src/usServiceRegistry.cpp:303–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void ServiceRegistry::GetRegisteredByModule(ModulePrivate* p,
304 std::vector<ServiceRegistrationBase>& res) const
305{
306 MutexLock lock(mutex);
307
308 for (std::vector<ServiceRegistrationBase>::const_iterator i = serviceRegistrations.begin();
309 i != serviceRegistrations.end(); ++i)
310 {
311 if (i->d->module == p)
312 {
313 res.push_back(*i);
314 }
315 }
316}
317
318void ServiceRegistry::GetUsedByModule(Module* p,
319 std::vector<ServiceRegistrationBase>& res) const

Callers 2

GetRegisteredServicesMethod · 0.80
RemoveModuleResourcesMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected