osrm-backend/include/engine/routing_algorithms
Michael Bell 5d468f2897
Make edge metrics strongly typed (#6421)
This change takes the existing typedefs for weight, duration and
distance, and makes them proper types, using the existing Alias
functionality.

Primarily this is to prevent bugs where the metrics are switched,
but it also adds additional documentation. For example, it now
makes it clear (despite the naming of variables) that most of the
trip algorithm is running on the duration metric.

I've not made any changes to the casts performed between metrics
and numeric types, they now just more explicit.
2022-10-28 15:16:12 +01:00
..
alternative_path.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
direct_shortest_path.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
many_to_many.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
map_matching.hpp Add abstraction to change the data facade at compile time 2017-07-17 11:40:55 +00:00
routing_base_ch.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
routing_base_mld.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
routing_base.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
shortest_path_impl.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
shortest_path.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
tile_turns.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00