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

Method PassCheckpoints

libs/routing/routing_session.cpp:519–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void RoutingSession::PassCheckpoints()
520{
521 CHECK_THREAD_CHECKER(m_threadChecker, ());
522 while (!m_checkpoints.IsFinished() && m_route->IsSubroutePassed(m_checkpoints.GetPassedIdx()))
523 {
524 m_route->PassNextSubroute();
525 m_checkpoints.PassNextPoint();
526 LOG(LINFO, ("Pass checkpoint, ", m_checkpoints));
527 m_checkpointCallback(m_checkpoints.GetPassedIdx());
528 }
529}
530
531void RoutingSession::GenerateNotifications(std::vector<std::string> & notifications, bool announceStreets)
532{

Callers

nothing calls this directly

Calls 5

IsSubroutePassedMethod · 0.80
GetPassedIdxMethod · 0.80
PassNextSubrouteMethod · 0.80
PassNextPointMethod · 0.80
IsFinishedMethod · 0.45

Tested by

no test coverage detected