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

Method ForEachGeometry

libs/map/track.cpp:186–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void Track::ForEachGeometry(GeometryFnT && fn) const
187{
188 for (auto const & line : m_data.m_geometry.m_lines)
189 {
190 std::vector<m2::PointD> points;
191 points.reserve(line.size());
192 for (auto const & pt : line)
193 points.push_back(pt.GetPoint());
194
195 fn(std::move(points));
196 }
197}
198
199void Track::Attach(kml::MarkGroupId groupId)
200{

Callers 1

Calls 4

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected