| 674 | } |
| 675 | |
| 676 | bool 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 | |
| 684 | bool Storage::IsInnerNode(CountryId const & countryId) const |
| 685 | { |