mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -38,8 +38,8 @@ public:
|
||||
RoadGeometry(bool oneWay, double weightSpeedKMpH, double etaSpeedKMpH, Points const & points);
|
||||
|
||||
/// @param[in] altitudes May be nullptr.
|
||||
void Load(VehicleModelInterface const & vehicleModel, FeatureType & feature,
|
||||
geometry::Altitudes const * altitudes, RoadAttrsGetter & attrs);
|
||||
void Load(VehicleModelInterface const & vehicleModel, FeatureType & feature, geometry::Altitudes const * altitudes,
|
||||
RoadAttrsGetter & attrs);
|
||||
|
||||
SpeedKMpH const & GetSpeed(bool forward) const;
|
||||
std::optional<HighwayType> GetHighwayType() const { return m_highwayType; }
|
||||
@@ -72,10 +72,7 @@ public:
|
||||
return pointId == 0 || pointId + 1 == GetPointsCount();
|
||||
}
|
||||
|
||||
void SetPassThroughAllowedForTests(bool passThroughAllowed)
|
||||
{
|
||||
m_isPassThroughAllowed = passThroughAllowed;
|
||||
}
|
||||
void SetPassThroughAllowedForTests(bool passThroughAllowed) { m_isPassThroughAllowed = passThroughAllowed; }
|
||||
|
||||
bool SuitableForOptions(RoutingOptions avoidRoutingOptions) const
|
||||
{
|
||||
@@ -86,7 +83,7 @@ public:
|
||||
|
||||
private:
|
||||
std::vector<LatLonWithAltitude> m_junctions;
|
||||
mutable std::vector<double> m_distances; ///< as cache, @see GetDistance()
|
||||
mutable std::vector<double> m_distances; ///< as cache, @see GetDistance()
|
||||
|
||||
SpeedKMpH m_forwardSpeed;
|
||||
SpeedKMpH m_backwardSpeed;
|
||||
@@ -111,14 +108,13 @@ public:
|
||||
using VehicleModelPtrT = std::shared_ptr<VehicleModelInterface>;
|
||||
|
||||
/// @param[in] handle should be alive, its caller responsibility to check it.
|
||||
static std::unique_ptr<GeometryLoader> Create(MwmSet::MwmHandle const & handle,
|
||||
VehicleModelPtrT const & vehicleModel,
|
||||
static std::unique_ptr<GeometryLoader> Create(MwmSet::MwmHandle const & handle, VehicleModelPtrT const & vehicleModel,
|
||||
bool loadAltitudes);
|
||||
|
||||
/// This is for stand-alone work.
|
||||
/// Use in generator_tool and unit tests.
|
||||
static std::unique_ptr<GeometryLoader> CreateFromFile(
|
||||
std::string const & filePath, VehicleModelPtrT const & vehicleModel);
|
||||
static std::unique_ptr<GeometryLoader> CreateFromFile(std::string const & filePath,
|
||||
VehicleModelPtrT const & vehicleModel);
|
||||
};
|
||||
|
||||
/// \brief This class supports loading geometry of roads for routing.
|
||||
@@ -143,10 +139,7 @@ public:
|
||||
|
||||
/// \note The reference returned by the method is valid until the next call of GetRoad()
|
||||
/// of GetPoint() methods.
|
||||
ms::LatLon const & GetPoint(RoadPoint const & rp)
|
||||
{
|
||||
return GetRoad(rp.GetFeatureId()).GetPoint(rp.GetPointId());
|
||||
}
|
||||
ms::LatLon const & GetPoint(RoadPoint const & rp) { return GetRoad(rp.GetFeatureId()).GetPoint(rp.GetPointId()); }
|
||||
|
||||
SpeedInUnits GetSavedMaxspeed(uint32_t featureId, bool forward)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user