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

Method PushAndDropLastSubProgress

libs/routing/base/astar_progress.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void AStarProgress::PushAndDropLastSubProgress()
100{
101 CHECK_GREATER(m_subProgresses.size(), 1, ());
102 auto prevLast = std::prev(std::prev(m_subProgresses.end()));
103
104 prevLast->Flush(m_subProgresses.back().GetMaxContribution());
105 DropLastSubProgress();
106}
107
108double AStarProgress::UpdateProgress(ms::LatLon const & current, ms::LatLon const & end)
109{

Callers 5

DoCalculateRouteMethod · 0.80
CalcMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 5

GetMaxContributionMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45
endMethod · 0.45
FlushMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64