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

Method FindFirst

libs/storage/country_tree.cpp:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299CountryTree::Node const * CountryTree::FindFirst(CountryId const & key) const
300{
301 if (IsEmpty())
302 return nullptr;
303
304 NodesBufferT found;
305 Find(key, found);
306 if (found.empty())
307 return nullptr;
308 return found[0];
309}
310
311CountryTree::Node const * CountryTree::FindFirstLeaf(CountryId const & key) const
312{

Callers 12

storage.cppFile · 0.80
IsNodeMethod · 0.80
IsLeafMethod · 0.80
IsInnerNodeMethod · 0.80
GetChildrenMethod · 0.80
GetChildrenInGroupsMethod · 0.80
DownloadNodeMethod · 0.80
DeleteNodeMethod · 0.80
GetNodeStatusesMethod · 0.80
GetUpdateInfoMethod · 0.80
GetQueuedChildrenMethod · 0.80
ForEachInSubtreeMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected