osrm-backend/unit_tests/partitioner
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
..
bisection_graph_view.cpp Migrate to C++17. Update sol2 to 3.3.0. (#6279) 2022-07-31 00:56:17 +01:00
bisection_graph.cpp Migrate to C++17. Update sol2 to 3.3.0. (#6279) 2022-07-31 00:56:17 +01:00
bisection_to_partition.cpp Enable more clang-tidy checks. (#6270) 2022-06-30 14:32:12 +01:00
cell_storage.cpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
dinic.cpp Removed references to obsolete Boost.Test headers. 2020-09-02 13:16:44 +03:00
graph_generator.hpp Enable more clang-tidy checks. (#6270) 2022-06-30 14:32:12 +01:00
multi_level_graph.cpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
multi_level_partition.cpp Enable more clang-tidy checks. (#6270) 2022-06-30 14:32:12 +01:00
recursive_bisection.cpp Migrate to modern TBB version (#6300) 2022-08-24 18:13:49 +02:00
remove_unconnected.cpp Enable more clang-tidy checks. (#6270) 2022-06-30 14:32:12 +01:00
renumber.cpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
reorder_first_last.cpp Removed references to obsolete Boost.Test headers. 2020-09-02 13:16:44 +03:00
scc_integration.cpp Removed references to obsolete Boost.Test headers. 2020-09-02 13:16:44 +03:00