MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / GetBundles

Method GetBundles

framework/src/bundle/BundleRegistry.cpp:434–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 std::vector<std::shared_ptr<BundlePrivate>>
435 BundleRegistry::GetBundles(std::string const& location) const
436 {
437 CheckIllegalState();
438
439 auto l = bundles.Lock();
440 US_UNUSED(l);
441
442 auto range = bundles.v.equal_range(location);
443 std::vector<std::shared_ptr<BundlePrivate>> result;
444 std::transform(range.first,
445 range.second,
446 std::back_inserter(result),
447 [](BundleMap::value_type const& p) { return p.second; });
448 return result;
449 }
450
451 std::vector<std::shared_ptr<BundlePrivate>>
452 BundleRegistry::GetBundles(std::string const& name, BundleVersion const& version) const

Callers

nothing calls this directly

Calls 4

LockMethod · 0.80
equal_rangeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected