| 414 | } |
| 415 | |
| 416 | std::shared_ptr<BundlePrivate> |
| 417 | BundleRegistry::GetBundle(long id) const |
| 418 | { |
| 419 | CheckIllegalState(); |
| 420 | |
| 421 | auto l = bundles.Lock(); |
| 422 | US_UNUSED(l); |
| 423 | |
| 424 | for (auto& m : bundles.v) |
| 425 | { |
| 426 | if (m.second->id == id) |
| 427 | { |
| 428 | return m.second; |
| 429 | } |
| 430 | } |
| 431 | return nullptr; |
| 432 | } |
| 433 | |
| 434 | std::vector<std::shared_ptr<BundlePrivate>> |
| 435 | BundleRegistry::GetBundles(std::string const& location) const |