osrm-backend/include/contractor
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
..
contract_excludable_graph.hpp Refactor CMake code related to compiler warnings, enable some additional warnings (#6355) 2022-09-30 11:42:36 +02:00
contracted_edge_container.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
contracted_metric.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
contractor_config.hpp Configure Undefined Behaviour Sanitizer (#6290) 2022-08-01 22:40:26 +01:00
contractor_graph.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
contractor_heap.hpp Rename BinaryHeap to QueryHeap 2017-05-02 15:54:25 +00:00
contractor_search.hpp Implement exclude flags on CH using shared core 2017-09-01 21:26:00 +02:00
contractor.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
crc32_processor.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
files.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
graph_contractor_adaptors.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
graph_contractor.hpp Implement exclude flags on CH using shared core 2017-09-01 21:26:00 +02:00
query_edge.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
query_graph.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
serialization.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00