| 97 | } |
| 98 | |
| 99 | void 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 | |
| 108 | double AStarProgress::UpdateProgress(ms::LatLon const & current, ms::LatLon const & end) |
| 109 | { |