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

Method GetRoutePoint

libs/map/routing_mark.cpp:368–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368RouteMarkPoint const * RoutePointsLayout::GetRoutePoint(RouteMarkType type, size_t intermediateIndex) const
369{
370 for (auto markId : m_manager.GetUserMarkIds(UserMark::Type::ROUTING))
371 {
372 auto const * mark = m_manager.GetMark<RouteMarkPoint>(markId);
373 if (mark->IsEqualFullType(type, intermediateIndex))
374 return mark;
375 }
376 return nullptr;
377}
378
379RouteMarkPoint * RoutePointsLayout::GetRoutePointForEdit(RouteMarkType type, size_t intermediateIndex)
380{

Callers 1

IsMyPositionMethod · 0.80

Calls 1

IsEqualFullTypeMethod · 0.80

Tested by

no test coverage detected