MCPcopy Create free account
hub / github.com/comaps/comaps / GetChildren

Method GetChildren

libs/storage/storage.cpp:1446–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1444}
1445
1446void 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/*
1465void Storage::GetLocalRealMaps(CountriesVec & localMaps) const

Callers 15

FlattenBuildingPartsFunction · 0.80
UNIT_CLASS_TESTFunction · 0.80
UNIT_CLASS_TESTFunction · 0.80
OnItemClickMethod · 0.80
FillTreeImplMethod · 0.80
PreOrderVisitFunction · 0.80
PostOrderVisitFunction · 0.80
TransformToTreeFunction · 0.80
IsEqualFunction · 0.80
PrintFunction · 0.80
SerializeMethod · 0.80

Calls 9

ASSERTFunction · 0.85
FindFirstMethod · 0.80
ChildrenCountMethod · 0.80
ChildMethod · 0.80
clearMethod · 0.45
reserveMethod · 0.45
emplace_backMethod · 0.45
NameMethod · 0.45
ValueMethod · 0.45

Tested by 8

UNIT_CLASS_TESTFunction · 0.64
UNIT_CLASS_TESTFunction · 0.64
DownloadGroupFunction · 0.64
DeleteGroupFunction · 0.64
TestDownloadDeleteFunction · 0.64
GetLevelCountFunction · 0.64
UNIT_TESTFunction · 0.64
UNIT_CLASS_TESTFunction · 0.64