Fix formatting

This commit is contained in:
Dennis Luxen
2022-12-20 18:00:11 +01:00
parent d7c44f0bc0
commit 7c06726a35
454 changed files with 461 additions and 461 deletions
+1 -1
View File
@@ -107,6 +107,6 @@ template <> struct HasGetTileTurns<mld::Algorithm> final : std::true_type
template <> struct HasExcludeFlags<mld::Algorithm> final : std::true_type
{
};
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif
+1 -1
View File
@@ -166,6 +166,6 @@ class BaseAPI
const BaseParameters &parameters;
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -120,6 +120,6 @@ struct BaseParameters
});
}
};
} // namespace osrm
} // namespace osrm::engine::api
#endif // ROUTE_PARAMETERS_HPP
+1 -1
View File
@@ -12,6 +12,6 @@ namespace osrm::engine::api
{
using ResultT =
mapbox::util::variant<util::json::Object, std::string, flatbuffers::FlatBufferBuilder>;
} // namespace osrm
} // namespace osrm::engine::api
#endif
+2 -2
View File
@@ -108,7 +108,7 @@ util::json::Object makeRouteLeg(guidance::RouteLeg leg, util::json::Array steps)
util::json::Array makeRouteLegs(std::vector<guidance::RouteLeg> legs,
std::vector<util::json::Value> step_geometries,
std::vector<util::json::Object> annotations);
} // namespace api
} // namespace osrm
} // namespace api::json
} // namespace osrm::engine
#endif // ENGINE_GUIDANCE_API_RESPONSE_GENERATOR_HPP_
+1 -1
View File
@@ -249,6 +249,6 @@ class MatchAPI final : public RouteAPI
const tidy::Result &tidy_result;
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -94,6 +94,6 @@ struct MatchParameters : public RouteParameters
(timestamps.empty() || timestamps.size() == coordinates.size());
}
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -194,6 +194,6 @@ inline Result tidy(const MatchParameters &params, Thresholds cfg = {15., 5})
return result;
}
} // namespace osrm
} // namespace osrm::engine::api::tidy
#endif
+1 -1
View File
@@ -160,6 +160,6 @@ class NearestAPI final : public BaseAPI
}
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -48,6 +48,6 @@ struct NearestParameters : public BaseParameters
bool IsValid() const { return BaseParameters::IsValid() && number_of_results >= 1; }
};
} // namespace osrm
} // namespace osrm::engine::api
#endif // ENGINE_API_NEAREST_PARAMETERS_HPP
+1 -1
View File
@@ -997,6 +997,6 @@ class RouteAPI : public BaseAPI
}
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -207,6 +207,6 @@ inline RouteParameters::AnnotationsType operator|=(RouteParameters::AnnotationsT
{
return lhs = lhs | rhs;
}
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -418,6 +418,6 @@ class TableAPI final : public BaseAPI
const TableParameters &parameters;
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -162,6 +162,6 @@ inline TableParameters::AnnotationsType &operator|=(TableParameters::Annotations
{
return lhs = lhs | rhs;
}
} // namespace osrm
} // namespace osrm::engine::api
#endif // ENGINE_API_TABLE_PARAMETERS_HPP
+1 -1
View File
@@ -66,6 +66,6 @@ struct TileParameters final
return valid_x && valid_y && valid_z;
}
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -176,6 +176,6 @@ class TripAPI final : public RouteAPI
const TripParameters &parameters;
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -72,6 +72,6 @@ struct TripParameters : public RouteParameters
bool IsValid() const { return RouteParameters::IsValid(); }
};
} // namespace osrm
} // namespace osrm::engine::api
#endif
+1 -1
View File
@@ -39,5 +39,5 @@ enum class Approach : std::uint8_t
UNRESTRICTED = 1
};
} // namespace osrm
} // namespace osrm::engine
#endif
+1 -1
View File
@@ -44,6 +44,6 @@ inline bool operator==(const Bearing lhs, const Bearing rhs)
return lhs.bearing == rhs.bearing && lhs.range == rhs.range;
}
inline bool operator!=(const Bearing lhs, const Bearing rhs) { return !(lhs == rhs); }
} // namespace osrm
} // namespace osrm::engine
#endif
+1 -1
View File
@@ -147,6 +147,6 @@ class DataWatchdogImpl<AlgorithmT, datafacade::ContiguousInternalMemoryDataFacad
// once a new dataset arrives.
template <typename AlgorithmT, template <typename A> class FacadeT>
using DataWatchdog = detail::DataWatchdogImpl<AlgorithmT, FacadeT<AlgorithmT>>;
} // namespace osrm
} // namespace osrm::engine
#endif
+1 -1
View File
@@ -9,6 +9,6 @@ namespace osrm::engine
using DataFacadeBase = datafacade::ContiguousInternalMemoryDataFacadeBase;
template <typename AlgorithmT>
using DataFacade = datafacade::ContiguousInternalMemoryDataFacade<AlgorithmT>;
} // namespace osrm
} // namespace osrm::engine
#endif
@@ -105,6 +105,6 @@ template <> class AlgorithmDataFacade<MLD>
virtual EdgeID FindEdge(const NodeID edge_based_node_from,
const NodeID edge_based_node_to) const = 0;
};
} // namespace osrm
} // namespace osrm::engine::datafacade
#endif
@@ -15,6 +15,6 @@ class ContiguousBlockAllocator
virtual const storage::SharedDataIndex &GetIndex() = 0;
};
} // namespace osrm
} // namespace osrm::engine::datafacade
#endif // OSRM_ENGINE_DATAFACADE_CONTIGUOUS_BLOCK_ALLOCATOR_HPP_
@@ -689,6 +689,6 @@ class ContiguousInternalMemoryDataFacade<MLD> final
{
}
};
} // namespace osrm
} // namespace osrm::engine::datafacade
#endif // CONTIGUOUS_INTERNALMEM_DATAFACADE_HPP
@@ -185,6 +185,6 @@ class BaseDataFacade
virtual std::vector<extractor::ManeuverOverride>
GetOverridesThatStartAt(const NodeID edge_based_node_id) const = 0;
};
} // namespace osrm
} // namespace osrm::engine::datafacade
#endif // DATAFACADE_BASE_HPP
@@ -33,6 +33,6 @@ class MMapMemoryAllocator final : public ContiguousBlockAllocator
std::string rtree_filename;
};
} // namespace osrm
} // namespace osrm::engine::datafacade
#endif // OSRM_ENGINE_DATAFACADE_SHARED_MEMORY_ALLOCATOR_HPP_
@@ -30,6 +30,6 @@ class ProcessMemoryAllocator final : public ContiguousBlockAllocator
std::unique_ptr<char[]> internal_memory;
};
} // namespace osrm
} // namespace osrm::engine::datafacade
#endif // OSRM_ENGINE_DATAFACADE_PROCESS_MEMORY_ALLOCATOR_HPP_
@@ -31,6 +31,6 @@ class SharedMemoryAllocator final : public ContiguousBlockAllocator
std::vector<std::unique_ptr<storage::SharedMemory>> memory_regions;
};
} // namespace osrm
} // namespace osrm::engine::datafacade
#endif // OSRM_ENGINE_DATAFACADE_SHARED_MEMORY_ALLOCATOR_HPP_
+1 -1
View File
@@ -150,6 +150,6 @@ template <template <typename A> class FacadeT, typename AlgorithmT> class DataFa
std::unordered_map<std::string, extractor::ClassData> name_to_class;
const extractor::ProfileProperties *properties = nullptr;
};
} // namespace osrm
} // namespace osrm::engine
#endif
+1 -1
View File
@@ -101,6 +101,6 @@ template <typename AlgorithmT>
using ImmutableProvider = detail::ImmutableProvider<AlgorithmT, DataFacade>;
template <typename AlgorithmT>
using ExternalProvider = detail::ExternalProvider<AlgorithmT, DataFacade>;
} // namespace osrm
} // namespace osrm::engine
#endif
+1 -1
View File
@@ -73,6 +73,6 @@ inline std::vector<util::Coordinate> douglasPeucker(const std::vector<util::Coor
{
return douglasPeucker(begin(geometry), end(geometry), zoom_level);
}
} // namespace osrm
} // namespace osrm::engine
#endif /* DOUGLAS_PEUCKER_HPP_ */
+1 -1
View File
@@ -128,6 +128,6 @@ template <typename Algorithm> class Engine final : public EngineInterface
const plugins::MatchPlugin match_plugin;
const plugins::TilePlugin tile_plugin;
};
} // namespace osrm
} // namespace osrm::engine
#endif // OSRM_IMPL_HPP
+1 -1
View File
@@ -91,6 +91,6 @@ struct EngineConfig final
std::string verbosity;
std::string dataset_name;
};
} // namespace osrm
} // namespace osrm::engine
#endif // SERVER_CONFIG_HPP
+1 -1
View File
@@ -581,6 +581,6 @@ template <typename RTreeT, typename DataFacadeT> class GeospatialQuery
const CoordinateList &coordinates;
DataFacadeT &datafacade;
};
} // namespace osrm
} // namespace osrm::engine
#endif
@@ -168,6 +168,6 @@ inline LegGeometry assembleGeometry(const datafacade::BaseDataFacade &facade,
return geometry;
}
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
+1 -1
View File
@@ -228,6 +228,6 @@ inline RouteLeg assembleLeg(const datafacade::BaseDataFacade &facade,
{}};
}
} // namespace osrm
} // namespace osrm::engine::guidance
#endif // ENGINE_GUIDANCE_SEGMENT_LIST_HPP_
@@ -13,6 +13,6 @@ namespace osrm::engine::guidance
std::vector<util::Coordinate> assembleOverview(const std::vector<LegGeometry> &leg_geometries,
const bool use_simplification);
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
+1 -1
View File
@@ -11,6 +11,6 @@ namespace osrm::engine::guidance
Route assembleRoute(const std::vector<RouteLeg> &route_legs);
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
+1 -1
View File
@@ -361,6 +361,6 @@ inline std::vector<RouteStep> assembleSteps(const datafacade::BaseDataFacade &fa
return steps;
}
} // namespace osrm
} // namespace osrm::engine::guidance
#endif // ENGINE_GUIDANCE_SEGMENT_LIST_HPP_
@@ -83,6 +83,6 @@ bool doubleChoiceless(const RouteStepIterator step_entering_intersection,
bool straightTurnFollowedByChoiceless(const RouteStepIterator step_entering_intersection,
const RouteStepIterator step_leaving_intersection);
} /* namespace osrm */
} // namespace osrm::engine::guidance
#endif /* OSRM_ENGINE_GUIDANCE_COLLAPSE_SCENARIO_DETECTION_HPP_ */
+1 -1
View File
@@ -158,6 +158,6 @@ void combineRouteSteps(RouteStep &step_at_turn_location,
// alias for suppressing a step, using CombineRouteStep with NoModificationStrategy only
void suppressStep(RouteStep &step_at_turn_location, RouteStep &step_after_turn_location);
} /* namespace osrm */
} // namespace osrm::engine::guidance
#endif /* OSRM_ENGINE_GUIDANCE_COLLAPSE_HPP_ */
@@ -298,6 +298,6 @@ inline bool hasStraightestTurn(const RouteStep &step)
return false;
}
} /* namespace osrm */
} // namespace osrm::engine::guidance
#endif /* OSRM_ENGINE_GUIDANCE_COLLAPSING_UTILITY_HPP_ */
+1 -1
View File
@@ -18,6 +18,6 @@ OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> anticipateLaneChange(std::vector<RouteStep> steps,
const double min_distance_needed_for_lane_change = 200);
} // namespace osrm
} // namespace osrm::engine::guidance
#endif /* OSRM_ENGINE_GUIDANCE_LANE_PROCESSING_HPP_ */
+1 -1
View File
@@ -60,6 +60,6 @@ struct LegGeometry
return segment_offsets.size() - 1;
}
};
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
+1 -1
View File
@@ -54,6 +54,6 @@ void applyOverrides(const datafacade::BaseDataFacade &facade,
std::vector<RouteStep> &steps,
const LegGeometry &geometry);
} // namespace osrm
} // namespace osrm::engine::guidance
#endif // ENGINE_GUIDANCE_POST_PROCESSING_HPP
@@ -42,6 +42,6 @@ template <typename Iter, typename Fn> inline Fn forEachRoundabout(Iter first, It
return fn;
}
} // namespace osrm
} // namespace osrm::engine::guidance
#endif /* OSRM_ENGINE_GUIDANCE_POSTPROCESSING_TOOLKIT_HPP_ */
+1 -1
View File
@@ -10,6 +10,6 @@ struct Route
double duration;
double weight;
};
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
+1 -1
View File
@@ -19,6 +19,6 @@ struct RouteLeg
std::string summary;
std::vector<RouteStep> steps;
};
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
+1 -1
View File
@@ -230,6 +230,6 @@ inline auto RouteStep::LanesToTheRight() const
return boost::make_iterator_range(description.end() - num_lanes_right, description.end());
}
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
+1 -1
View File
@@ -40,5 +40,5 @@ inline StepManeuver getInvalidStepManeuver()
0};
}
} // namespace osrm
} // namespace osrm::engine::guidance
#endif
@@ -16,6 +16,6 @@ namespace osrm::engine::guidance
OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> suppressShortNameSegments(std::vector<RouteStep> steps);
} // namespace osrm
} // namespace osrm::engine::guidance
#endif /* OSRM_ENGINE_GUIDANCE_VERBOSITY_REDUCTION_HPP_ */
+1 -1
View File
@@ -81,6 +81,6 @@ constexpr std::size_t ENCODED_SEGMENT_HINT_SIZE = 112;
static_assert(ENCODED_SEGMENT_HINT_SIZE / 4 * 3 >= sizeof(SegmentHint),
"ENCODED_SEGMENT_HINT_SIZE does not match size of SegmentHint");
} // namespace osrm
} // namespace osrm::engine
#endif
+1 -1
View File
@@ -150,6 +150,6 @@ inline InternalRouteResult CollapseInternalRouteResult(const InternalRouteResult
BOOST_ASSERT(collapsed.leg_endpoints.size() == collapsed.unpacked_path_segments.size());
return collapsed;
}
} // namespace osrm
} // namespace osrm::engine
#endif // RAW_ROUTE_DATA_H
@@ -94,6 +94,6 @@ class BayesClassifier
double positive_apriori_probability;
double negative_apriori_probability;
};
} // namespace osrm
} // namespace osrm::engine::map_matching
#endif // BAYES_CLASSIFIER_HPP
@@ -133,6 +133,6 @@ template <class CandidateLists> struct HiddenMarkovModel
return initial_timestamp;
}
};
} // namespace osrm
} // namespace osrm::engine::map_matching
#endif // HIDDEN_MARKOV_MODEL
@@ -47,6 +47,6 @@ struct MatchingConfidence
private:
ClassifierT classifier;
};
} // namespace osrm
} // namespace osrm::engine::map_matching
#endif
+1 -1
View File
@@ -15,6 +15,6 @@ struct SubMatching
std::vector<unsigned> alternatives_count;
double confidence;
};
} // namespace osrm
} // namespace osrm::engine::map_matching
#endif
+1 -1
View File
@@ -271,6 +271,6 @@ struct PhantomEndpoints
PhantomNode target_phantom;
};
} // namespace osrm
} // namespace osrm::engine
#endif // OSRM_ENGINE_PHANTOM_NODE_H
+1 -1
View File
@@ -34,6 +34,6 @@ class MatchPlugin : public BasePlugin
const int max_locations_map_matching;
const double max_radius_map_matching;
};
} // namespace osrm
} // namespace osrm::engine::plugins
#endif // MATCH_HPP
+1 -1
View File
@@ -22,6 +22,6 @@ class NearestPlugin final : public BasePlugin
private:
const int max_results;
};
} // namespace osrm
} // namespace osrm::engine::plugins
#endif /* NEAREST_HPP */
+1 -1
View File
@@ -321,6 +321,6 @@ class BasePlugin
std::to_string(missing_index);
}
};
} // namespace osrm
} // namespace osrm::engine::plugins
#endif /* BASE_PLUGIN_HPP */
+1 -1
View File
@@ -23,6 +23,6 @@ class TablePlugin final : public BasePlugin
private:
const int max_locations_distance_table;
};
} // namespace osrm
} // namespace osrm::engine::plugins
#endif // TABLE_HPP
+1 -1
View File
@@ -26,6 +26,6 @@ class TilePlugin final : public BasePlugin
const api::TileParameters &parameters,
osrm::engine::api::ResultT &pbf_buffer) const;
};
} // namespace osrm
} // namespace osrm::engine::plugins
#endif /* TILEPLUGIN_HPP */
+1 -1
View File
@@ -38,6 +38,6 @@ class TripPlugin final : public BasePlugin
const api::TripParameters &parameters,
osrm::engine::api::ResultT &json_result) const;
};
} // namespace osrm
} // namespace osrm::engine::plugins
#endif // TRIP_HPP
+1 -1
View File
@@ -31,6 +31,6 @@ class ViaRoutePlugin final : public BasePlugin
const api::RouteParameters &route_parameters,
osrm::engine::api::ResultT &json_result) const;
};
} // namespace osrm
} // namespace osrm::engine::plugins
#endif // VIA_ROUTE_HPP
+1 -1
View File
@@ -78,6 +78,6 @@ std::vector<util::Coordinate> decodePolyline(const std::string &polyline)
}
return coordinates;
}
} // namespace osrm
} // namespace osrm::engine
#endif /* POLYLINECOMPRESSOR_H_ */
+1 -1
View File
@@ -230,6 +230,6 @@ inline std::vector<routing_algorithms::TurnData> RoutingAlgorithms<Algorithm>::G
return routing_algorithms::getTileTurns(*facade, edges, sorted_edge_indexes);
}
} // namespace osrm
} // namespace osrm::engine
#endif
@@ -22,6 +22,6 @@ InternalManyRoutesResult alternativePathSearch(SearchEngineData<mld::Algorithm>
const PhantomEndpointCandidates &endpoint_candidates,
unsigned number_of_alternatives);
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif
@@ -22,6 +22,6 @@ InternalRouteResult directShortestPathSearch(SearchEngineData<Algorithm> &engine
const DataFacade<Algorithm> &facade,
const PhantomEndpointCandidates &endpoint_candidates);
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif /* DIRECT_SHORTEST_PATH_HPP */
@@ -95,6 +95,6 @@ manyToManySearch(SearchEngineData<Algorithm> &engine_working_data,
const std::vector<std::size_t> &target_indices,
const bool calculate_distance);
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif
@@ -27,6 +27,6 @@ SubMatchingList mapMatching(SearchEngineData<Algorithm> &engine_working_data,
const std::vector<boost::optional<double>> &trace_gps_precision,
const bool allow_splitting);
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif /* MAP_MATCHING_HPP */
@@ -416,6 +416,6 @@ template <typename FacadeT> EdgeDistance computeEdgeDistance(const FacadeT &faca
return total_distance;
}
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif // OSRM_ENGINE_ROUTING_BASE_HPP
@@ -514,6 +514,6 @@ std::tuple<EdgeMetric, EdgeDistance> getLoopMetric(const DataFacade<Algorithm> &
}
return std::make_tuple(loop_metric, loop_distance);
}
} // namespace osrm
} // namespace osrm::engine::routing_algorithms::ch
#endif // OSRM_ENGINE_ROUTING_BASE_CH_HPP
@@ -649,6 +649,6 @@ double getNetworkDistance(SearchEngineData<Algorithm> &engine_working_data,
return getPathDistance(facade, unpacked_path, source_phantom, target_phantom);
}
} // namespace osrm
} // namespace osrm::engine::routing_algorithms::mld
#endif // OSRM_ENGINE_ROUTING_BASE_MLD_HPP
@@ -16,6 +16,6 @@ shortestPathSearch(SearchEngineData<Algorithm> &engine_working_data,
const std::vector<PhantomNodeCandidates> &waypoint_candidates,
const boost::optional<bool> continue_straight_at_waypoint);
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif /* OSRM_SHORTEST_PATH_HPP */
@@ -785,6 +785,6 @@ shortestPathSearch(SearchEngineData<Algorithm> &engine_working_data,
}
}
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif /* OSRM_SHORTEST_PATH_IMPL_HPP */
@@ -33,6 +33,6 @@ std::vector<TurnData> getTileTurns(const DataFacade<mld::Algorithm> &facade,
const std::vector<RTreeLeaf> &edges,
const std::vector<std::size_t> &sorted_edge_indexes);
} // namespace osrm
} // namespace osrm::engine::routing_algorithms
#endif
+1 -1
View File
@@ -118,6 +118,6 @@ template <> struct SearchEngineData<routing_algorithms::mld::Algorithm>
void InitializeOrClearManyToManyThreadLocalStorage(unsigned number_of_nodes,
unsigned number_of_boundary_nodes);
};
} // namespace osrm
} // namespace osrm::engine
#endif // SEARCH_ENGINE_DATA_HPP
+1 -1
View File
@@ -40,6 +40,6 @@ enum class Status
Ok,
Error
};
} // namespace osrm
} // namespace osrm::engine
#endif
+1 -1
View File
@@ -89,6 +89,6 @@ inline std::vector<NodeID> BruteForceTrip(const std::size_t number_of_locations,
return route;
}
} // namespace osrm
} // namespace osrm::engine::trip
#endif // TRIP_BRUTE_FORCE_HPP
@@ -171,6 +171,6 @@ FarthestInsertionTrip(const std::size_t number_of_locations,
return FindRoute(number_of_locations, dist_table, max_from, max_to);
}
} // namespace osrm
} // namespace osrm::engine::trip
#endif // TRIP_FARTHEST_INSERTION_HPP
@@ -88,6 +88,6 @@ std::vector<NodeID> NearestNeighbourTrip(const NodeIDIterator &start,
}
return route;
}
} // namespace osrm
} // namespace osrm::engine::trip
#endif // TRIP_NEAREST_NEIGHBOUR_HPP