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

Function IsComplex

generator/complex_loader.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace generator
16{
17bool IsComplex(tree_node::types::Ptr<HierarchyEntry> const & tree)
18{
19 size_t constexpr kNumRequiredTypes = 3;
20
21 return tree_node::CountIf(tree, [&](auto const & e)
22 {
23 auto const & isPartOfTourismAttractions = ftypes::IsPartOfTourismAttractionsChecker::Instance();
24 return isPartOfTourismAttractions(e.m_type);
25 }) >= kNumRequiredTypes;
26}
27
28storage::CountryId GetCountry(tree_node::types::Ptr<HierarchyEntry> const & tree)
29{

Callers 2

ComplexLoaderMethod · 0.85
UNIT_CLASS_TESTFunction · 0.85

Calls 1

CountIfFunction · 0.85

Tested by 1

UNIT_CLASS_TESTFunction · 0.68