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

Method Find

libs/storage/country_tree.cpp:285–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void CountryTree::Find(CountryId const & key, NodesBufferT & found) const
286{
287 found.clear();
288 if (IsEmpty())
289 return;
290
291 if (key == m_countryTree->Value().Name())
292 found.push_back(m_countryTree.get());
293
294 auto const range = m_countryTreeMap.equal_range(key);
295 for (auto it = range.first; it != range.second; ++it)
296 found.push_back(it->second);
297}
298
299CountryTree::Node const * CountryTree::FindFirst(CountryId const & key) const
300{

Callers 14

ExtractStringMethod · 0.45
ReadPageMethod · 0.45
IsDisputedMethod · 0.45
GetNodeAttrsMethod · 0.45
GetTopmostNodesForMethod · 0.45
GetParentIdForMethod · 0.45
WithRegionMethod · 0.45
GetTopmostParentForFunction · 0.45
ProcessKeyMethod · 0.45
StylistMethod · 0.45

Calls 6

getMethod · 0.65
clearMethod · 0.45
NameMethod · 0.45
ValueMethod · 0.45
push_backMethod · 0.45
equal_rangeMethod · 0.45

Tested by

no test coverage detected