Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'routing/geometry.hpp')
-rw-r--r--routing/geometry.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/routing/geometry.hpp b/routing/geometry.hpp
index f49343677d..a88dd6d45c 100644
--- a/routing/geometry.hpp
+++ b/routing/geometry.hpp
@@ -11,11 +11,11 @@
#include "geometry/point2d.hpp"
#include "base/buffer_vector.hpp"
+#include "base/fifo_cache.hpp"
#include <cstdint>
#include <memory>
#include <string>
-#include <unordered_map>
namespace routing
{
@@ -103,8 +103,7 @@ public:
}
private:
- // Feature id to RoadGeometry map.
- std::unordered_map<uint32_t, RoadGeometry> m_roads;
std::unique_ptr<GeometryLoader> m_loader;
+ std::unique_ptr<FifoCache<uint32_t, RoadGeometry>> m_featureIdToRoad;
};
} // namespace routing