osrm-backend/include/extractor
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
..
intersection Fix distance calculation consistency. (#6315) 2022-08-19 22:31:40 +01:00
class_data.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
compressed_edge_container.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
compressed_node_based_graph_edge.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
conditional_turn_penalty.hpp handle conditional via-way restrictions 2017-08-11 11:53:25 +02:00
datasources.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
edge_based_edge.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
edge_based_graph_factory.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
edge_based_node_segment.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
edge_based_node.hpp Code review fixes. 2017-11-16 15:08:30 +01:00
extraction_containers.hpp Do not generate intermediate .osrm file in osrm-extract. (#6354) 2022-09-30 14:29:10 +02:00
extraction_helper_functions.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
extraction_node.hpp Support OSM traffic signal directions (#6153) 2022-08-30 10:36:49 +01:00
extraction_relation.hpp Fix performance issues after migration to sol2 3.3.0 (#6304) 2022-08-15 23:10:56 +01:00
extraction_segment.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
extraction_turn.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
extraction_way.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
extractor_callbacks.hpp Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
extractor_config.hpp Do not generate intermediate .osrm file in osrm-extract. (#6354) 2022-09-30 14:29:10 +02:00
extractor.hpp Do not generate intermediate .osrm file in osrm-extract. (#6354) 2022-09-30 14:29:10 +02:00
files.hpp Do not generate intermediate .osrm file in osrm-extract. (#6354) 2022-09-30 14:29:10 +02:00
graph_compressor.hpp Support OSM traffic signal directions (#6153) 2022-08-30 10:36:49 +01:00
internal_extractor_edge.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
intersection_bearings_container.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
location_dependent_data.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
maneuver_override_relation_parser.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
maneuver_override.hpp Improvements to maneuver override processing (#6215) 2022-08-24 16:19:24 +01:00
name_table.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
nbg_to_ebg.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
node_based_edge.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
node_based_graph_factory.hpp Do not generate intermediate .osrm file in osrm-extract. (#6354) 2022-09-30 14:29:10 +02:00
node_data_container.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
node_restriction_map.hpp Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
nodes_of_way.hpp Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
packed_osm_ids.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
profile_properties.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
query_node.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
raster_source.hpp Update CI to use clang-tidy 14 (#6353) 2022-08-31 23:39:47 +02:00
restriction_graph.hpp Improvements to maneuver override processing (#6215) 2022-08-24 16:19:24 +01:00
restriction_parser.hpp Optimize RestrictionParser performance (#6344) 2022-08-30 21:08:52 +02:00
restriction.hpp Fix a couple of warnings found by PVS Studio (#6372) 2022-09-22 23:28:12 +02:00
road_classification.hpp Build Node bindings on Windows (#6334) 2022-09-20 20:43:13 +01:00
scripting_environment_lua.hpp Fix a couple of warnings found by PVS Studio (#6372) 2022-09-22 23:28:12 +02:00
scripting_environment.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
segment_data_container.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
serialization.hpp Enable even more clang-tidy checks (#6273) 2022-07-04 21:46:59 +01:00
suffix_table.hpp Implements Zero-Copy String Views onto Contiguous Memory, resolves #3265. 2017-01-23 15:22:39 +01:00
tarjan_scc.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
traffic_lights.hpp Support OSM traffic signal directions (#6153) 2022-08-30 10:36:49 +01:00
traffic_signals.hpp Support OSM traffic signal directions (#6153) 2022-08-30 10:36:49 +01:00
travel_mode.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
turn_lane_types.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
turn_path_compressor.hpp Improvements to maneuver override processing (#6215) 2022-08-24 16:19:24 +01:00
turn_path_filter.hpp Improvements to maneuver override processing (#6215) 2022-08-24 16:19:24 +01:00
turn_path.hpp Improvements to maneuver override processing (#6215) 2022-08-24 16:19:24 +01:00
way_restriction_map.hpp Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00