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

Method FindFirstLeaf

libs/storage/country_tree.cpp:311–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311CountryTree::Node const * CountryTree::FindFirstLeaf(CountryId const & key) const
312{
313 if (IsEmpty())
314 return nullptr;
315
316 NodesBufferT found;
317 Find(key, found);
318
319 for (auto node : found)
320 if (node->ChildrenCount() == 0)
321 return node;
322 return nullptr;
323}
324
325MwmSubtreeAttrs LoadGroupImpl(size_t depth, json_t * node, CountryId const & parent, StoreInterface & store)
326{

Callers 1

storage.cppFile · 0.80

Calls 1

ChildrenCountMethod · 0.80

Tested by

no test coverage detected