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

Method GetHierarchyLines

generator/hierarchy.cpp:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221std::vector<HierarchyEntry> HierarchyLinesBuilder::GetHierarchyLines()
222{
223 CHECK(m_getName, ());
224 CHECK(m_getMainType, ());
225
226 std::vector<HierarchyEntry> lines;
227 for (auto const & tree : m_trees)
228 tree_node::PreOrderVisit(tree, [&](auto const & node) { lines.emplace_back(Transform(node)); });
229
230 return lines;
231}
232
233m2::PointD HierarchyLinesBuilder::GetCenter(HierarchyLinker::Node::Ptr const & node)
234{

Callers 1

ProcessMethod · 0.80

Calls 3

PreOrderVisitFunction · 0.85
TransformFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected