| 309 | } |
| 310 | |
| 311 | feature::AltitudeLoaderCached * FeaturesRoadGraph::GetAltitudesLoader(MwmSet::MwmId const & mwmId) const |
| 312 | { |
| 313 | auto it = m_altitudes.find(mwmId); |
| 314 | if (it == m_altitudes.end()) |
| 315 | { |
| 316 | auto const & handle = m_dataSource.GetHandle(mwmId); |
| 317 | it = m_altitudes.emplace(mwmId, *handle.GetValue()).first; |
| 318 | } |
| 319 | return &(it->second); |
| 320 | } |
| 321 | |
| 322 | void FeaturesRoadGraph::ClearState() |
| 323 | { |