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

Method PassNextSubroute

libs/routing/route.hpp:335–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333 }
334
335 void PassNextSubroute()
336 {
337 ASSERT_GREATER(m_subrouteAttrs.size(), m_currentSubrouteIdx, ());
338 m_currentSubrouteIdx = std::min(m_currentSubrouteIdx + 1, m_subrouteAttrs.size() - 1);
339 m_poly.SetNextCheckpointIndex(m_subrouteAttrs[m_currentSubrouteIdx].GetEndSegmentIdx());
340 }
341
342 /// \returns estimated time for the whole route.
343 double GetTotalTimeSec() const;

Callers 1

PassCheckpointsMethod · 0.80

Calls 3

GetEndSegmentIdxMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected