[routing] Review fixes.

This commit is contained in:
Vladimir Byko-Ianko 2019-06-28 15:32:29 +03:00 committed by Vlad Mihaylenko
parent e3bcb69b00
commit 3d9bfb5c12
3 changed files with 2 additions and 11 deletions

View file

@ -307,12 +307,12 @@ public:
virtual void ForEachFeatureClosestToCross(m2::PointD const & cross,
ICrossEdgesLoader & edgesLoader) const = 0;
/// Finds the closest edges to the point.
/// Finds the closest edges to the center of |rect|.
/// @return Array of pairs of Edge and projection point on the Edge. If there is no the closest edges
/// then returns empty array.
virtual void FindClosestEdges(m2::RectD const & rect, uint32_t count,
IsGoodFeatureFn const & isGoodFeature,
std::vector<std::pair<Edge, Junction>> & vicinities) const = 0;
std::vector<std::pair<Edge, Junction>> & vicinities) const {};
/// @return Types for the specified feature
virtual void GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const = 0;

View file

@ -95,12 +95,6 @@ void RoadGraphMockSource::ForEachFeatureClosestToCross(m2::PointD const & /* cro
}
}
void RoadGraphMockSource::FindClosestEdges(m2::RectD const &, uint32_t,
routing::IsGoodFeatureFn const &,
std::vector<std::pair<Edge, Junction>> &) const
{
}
void RoadGraphMockSource::GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const
{
UNUSED_VALUE(featureId);

View file

@ -26,9 +26,6 @@ public:
double GetMaxSpeedKMpH() const override;
void ForEachFeatureClosestToCross(m2::PointD const & cross,
ICrossEdgesLoader & edgeLoader) const override;
void FindClosestEdges(m2::RectD const & rect, uint32_t count,
routing::IsGoodFeatureFn const & isGoodFeature,
std::vector<std::pair<Edge, routing::Junction>> & vicinities) const override;
void GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const override;
void GetJunctionTypes(routing::Junction const & junction, feature::TypesHolder & types) const override;
routing::IRoadGraph::Mode GetMode() const override;