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

Method GetQueuedChildren

libs/storage/storage.cpp:2186–2203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2184/// @}
2185
2186void Storage::GetQueuedChildren(CountryId const & parent, CountriesVec & queuedChildren) const
2187{
2188 CountryTree::Node const * const node = m_countries.FindFirst(parent);
2189 if (!node)
2190 {
2191 ASSERT(false, ());
2192 return;
2193 }
2194
2195 queuedChildren.clear();
2196 node->ForEachChild([&queuedChildren, this](CountryTree::Node const & child)
2197 {
2198 NodeStatus status = GetNodeStatus(child).status;
2199 ASSERT_NOT_EQUAL(status, NodeStatus::Undefined, ());
2200 if (status == NodeStatus::Downloading || status == NodeStatus::InQueue)
2201 queuedChildren.push_back(child.Value().Name());
2202 });
2203}
2204
2205void Storage::GetGroupNodePathToRoot(CountryId const & groupNode, CountriesVec & path) const
2206{

Callers 1

UNIT_TESTFunction · 0.80

Calls 7

ASSERTFunction · 0.85
FindFirstMethod · 0.80
ForEachChildMethod · 0.80
clearMethod · 0.45
push_backMethod · 0.45
NameMethod · 0.45
ValueMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64