osrm-backend/include/engine
Michael Bell 19fef70d6f Make edge metrics strongly typed
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-25 21:18:34 +01:00
..
api Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
datafacade Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
guidance Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
map_matching Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
plugins Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
routing_algorithms Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
trip Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
algorithm.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
approach.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
base64.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
bearing.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
data_watchdog.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
datafacade_factory.hpp Enable more clang-tidy checks. (#6270) 2022-06-30 14:32:12 +01:00
datafacade_provider.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
datafacade.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
douglas_peucker.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
engine_config.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
engine.hpp Refactor CMake code related to compiler warnings, enable some additional warnings (#6355) 2022-09-30 11:42:36 +02:00
geospatial_query.hpp Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
hint.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
internal_route_result.hpp Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
phantom_node.hpp Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
polyline_compressor.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
routing_algorithms.hpp Refactor CMake code related to compiler warnings, enable some additional warnings (#6355) 2022-09-30 11:42:36 +02:00
search_engine_data.hpp Make edge metrics strongly typed 2022-10-25 21:18:34 +01:00
status.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00