Formatting pass
This commit is contained in:
parent
981b7accb3
commit
8bcfeff3ca
@ -23,8 +23,8 @@ class MatchPlugin : public BasePlugin
|
|||||||
MatchPlugin(const int max_locations_map_matching,
|
MatchPlugin(const int max_locations_map_matching,
|
||||||
const double max_radius_map_matching,
|
const double max_radius_map_matching,
|
||||||
boost::optional<double> default_radius)
|
boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius))
|
: BasePlugin(std::move(default_radius)),
|
||||||
, max_locations_map_matching(max_locations_map_matching),
|
max_locations_map_matching(max_locations_map_matching),
|
||||||
max_radius_map_matching(max_radius_map_matching)
|
max_radius_map_matching(max_radius_map_matching)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,9 +28,8 @@ class BasePlugin
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
BasePlugin() = default;
|
BasePlugin() = default;
|
||||||
|
|
||||||
BasePlugin(boost::optional<double> default_radius_)
|
BasePlugin(boost::optional<double> default_radius_) : default_radius(std::move(default_radius_))
|
||||||
: default_radius(std::move(default_radius_))
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,8 +33,7 @@ class TripPlugin final : public BasePlugin
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit TripPlugin(const int max_locations_trip_, boost::optional<double> default_radius)
|
explicit TripPlugin(const int max_locations_trip_, boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius))
|
: BasePlugin(std::move(default_radius)), max_locations_trip(max_locations_trip_)
|
||||||
, max_locations_trip(max_locations_trip_)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,8 +11,7 @@ namespace osrm::engine::plugins
|
|||||||
{
|
{
|
||||||
|
|
||||||
NearestPlugin::NearestPlugin(const int max_results_, boost::optional<double> default_radius_)
|
NearestPlugin::NearestPlugin(const int max_results_, boost::optional<double> default_radius_)
|
||||||
: BasePlugin(std::move(default_radius_))
|
: BasePlugin(std::move(default_radius_)), max_results{max_results_}
|
||||||
, max_results{max_results_}
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,8 +16,8 @@ namespace osrm::engine::plugins
|
|||||||
|
|
||||||
TablePlugin::TablePlugin(const int max_locations_distance_table,
|
TablePlugin::TablePlugin(const int max_locations_distance_table,
|
||||||
boost::optional<double> default_radius)
|
boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius))
|
: BasePlugin(std::move(default_radius)),
|
||||||
, max_locations_distance_table(max_locations_distance_table)
|
max_locations_distance_table(max_locations_distance_table)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,8 +18,8 @@ namespace osrm::engine::plugins
|
|||||||
ViaRoutePlugin::ViaRoutePlugin(int max_locations_viaroute,
|
ViaRoutePlugin::ViaRoutePlugin(int max_locations_viaroute,
|
||||||
int max_alternatives,
|
int max_alternatives,
|
||||||
boost::optional<double> default_radius)
|
boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius))
|
: BasePlugin(std::move(default_radius)), max_locations_viaroute(max_locations_viaroute),
|
||||||
, max_locations_viaroute(max_locations_viaroute), max_alternatives(max_alternatives)
|
max_alternatives(max_alternatives)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user