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

Method IsLeaf

libs/storage/storage.cpp:676–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676bool Storage::IsLeaf(CountryId const & countryId) const
677{
678 if (!IsCountryIdValid(countryId))
679 return false;
680 CountryTree::Node const * const node = m_countries.FindFirst(countryId);
681 return node != nullptr && node->ChildrenCount() == 0;
682}
683
684bool Storage::IsInnerNode(CountryId const & countryId) const
685{

Callers 5

mainFunction · 0.45
CreateVehicleRouterFunction · 0.45
RoutesBuilderMethod · 0.45

Calls 3

IsCountryIdValidFunction · 0.85
FindFirstMethod · 0.80
ChildrenCountMethod · 0.80

Tested by 2

CreateVehicleRouterFunction · 0.36