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

Method Reset

libs/routing/routing_session.cpp:238–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void RoutingSession::Reset()
239{
240 CHECK_THREAD_CHECKER(m_threadChecker, ());
241 ASSERT(m_router != nullptr, ());
242
243 RemoveRoute();
244 SetState(SessionState::NoValidRoute);
245 m_router->ClearState();
246
247 m_passedDistanceOnRouteMeters = 0.0;
248 m_isFollowing = false;
249 m_lastCompletionPercent = 0;
250
251 // reset announcement counters
252 m_routingRebuildCount = -1;
253 m_routingRebuildAnnounceCount = 0;
254}
255
256void RoutingSession::SetState(SessionState state)
257{

Callers 6

RemoveRouteMethod · 0.45
AssignRouteMethod · 0.45
RouterDelegateProxyMethod · 0.45
RestrictionLoaderMethod · 0.45
BuildRoutesWithApiFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 2

ASSERTFunction · 0.85
ClearStateMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36