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

Method RouterDelegateProxy

libs/routing/async_router.cpp:22–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20// ----------------------------------------------------------------------------------------------------------------------------
21
22AsyncRouter::RouterDelegateProxy::RouterDelegateProxy(ReadyCallbackOwnership const & onReady,
23 NeedMoreMapsCallback const & onNeedMoreMaps,
24 RemoveRouteCallback const & onRemoveRoute,
25 PointCheckCallback const & onPointCheck,
26 ProgressCallback const & onProgress, uint32_t timeoutSec)
27 : m_onReadyOwnership(onReady)
28 , m_onNeedMoreMaps(onNeedMoreMaps)
29 , m_onRemoveRoute(onRemoveRoute)
30 , m_onPointCheck(onPointCheck)
31 , m_onProgress(onProgress)
32{
33 m_delegate.Reset();
34 m_delegate.SetPointCheckCallback(std::bind(&RouterDelegateProxy::OnPointCheck, this, std::placeholders::_1));
35 m_delegate.SetProgressCallback(std::bind(&RouterDelegateProxy::OnProgress, this, std::placeholders::_1));
36 m_delegate.SetTimeout(timeoutSec);
37}
38
39void AsyncRouter::RouterDelegateProxy::OnReady(std::shared_ptr<Route> route, RouterResultCode resultCode)
40{

Callers

nothing calls this directly

Calls 4

SetPointCheckCallbackMethod · 0.80
ResetMethod · 0.45
SetProgressCallbackMethod · 0.45
SetTimeoutMethod · 0.45

Tested by

no test coverage detected