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

Method Link

generator/hierarchy.cpp:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148HierarchyLinker::Node::Ptrs HierarchyLinker::Link()
149{
150 for (auto & node : m_nodes)
151 {
152 auto const & place = node->GetData();
153 auto const parentPlace = FindPlaceParent(place);
154 if (!parentPlace)
155 continue;
156
157 tree_node::Link(node, parentPlace);
158 }
159 return m_nodes;
160}
161
162HierarchyEntryEnricher::HierarchyEntryEnricher(std::string const & osm2FtIdsPath, std::string const & countryFullPath)
163 : m_featureGetter(countryFullPath)

Callers 1

BuildHierarchyFunction · 0.45

Calls 2

LinkFunction · 0.50
GetDataMethod · 0.45

Tested by

no test coverage detected