| 1444 | } |
| 1445 | |
| 1446 | void Storage::GetChildren(CountryId const & parent, CountriesVec & childIds) const |
| 1447 | { |
| 1448 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 1449 | |
| 1450 | CountryTree::Node const * const parentNode = m_countries.FindFirst(parent); |
| 1451 | if (parentNode == nullptr) |
| 1452 | { |
| 1453 | ASSERT(false, ("CountryId =", parent, "not found in m_countries.")); |
| 1454 | return; |
| 1455 | } |
| 1456 | |
| 1457 | size_t const childrenCount = parentNode->ChildrenCount(); |
| 1458 | childIds.clear(); |
| 1459 | childIds.reserve(childrenCount); |
| 1460 | for (size_t i = 0; i < childrenCount; ++i) |
| 1461 | childIds.emplace_back(parentNode->Child(i).Value().Name()); |
| 1462 | } |
| 1463 | |
| 1464 | /* |
| 1465 | void Storage::GetLocalRealMaps(CountriesVec & localMaps) const |