/srv/osrm/osrm-backend/include/extractor
NameSizeModeActions
intersection/-0755rm
class_data.hpp9810644editdlrm
compressed_edge_container.hpp33360644editdlrm
compressed_node_based_graph_edge.hpp4180644editdlrm
conditional_turn_penalty.hpp5890644editdlrm
datasources.hpp12070644editdlrm
edge_based_edge.hpp34670644editdlrm
edge_based_graph_factory.hpp77870644editdlrm
edge_based_node.hpp3830644editdlrm
edge_based_node_segment.hpp20500644editdlrm
extraction_containers.hpp36790644editdlrm
extraction_helper_functions.hpp48270644editdlrm
extraction_node.hpp4590644editdlrm
extraction_relation.hpp59490644editdlrm
extraction_segment.hpp7150644editdlrm
extraction_turn.hpp49830644editdlrm
extraction_way.hpp42680644editdlrm
extractor.hpp52670644editdlrm
extractor_callbacks.hpp32490644editdlrm
extractor_config.hpp30400644editdlrm
files.hpp243720644editdlrm
graph_compressor.hpp12710644editdlrm
internal_extractor_edge.hpp26420644editdlrm
intersection_bearings_container.hpp44870644editdlrm
location_dependent_data.hpp17970644editdlrm
maneuver_override.hpp54560644editdlrm
maneuver_override_relation_parser.hpp17850644editdlrm
name_table.hpp35960644editdlrm
nbg_to_ebg.hpp4500644editdlrm
nodes_of_way.hpp14110644editdlrm
node_based_edge.hpp80240644editdlrm
node_based_graph_factory.hpp51550644editdlrm
node_data_container.hpp45580644editdlrm
node_restriction_map.hpp22920644editdlrm
packed_osm_ids.hpp5200644editdlrm
profile_properties.hpp50290644editdlrm
query_node.hpp14110644editdlrm
raster_source.hpp50020644editdlrm
restriction.hpp17500644editdlrm
restriction_graph.hpp45000644editdlrm
restriction_parser.hpp17680644editdlrm
road_classification.hpp83900644editdlrm
scripting_environment.hpp24260644editdlrm
scripting_environment_lua.hpp42530644editdlrm
segment_data_container.hpp80320644editdlrm
serialization.hpp88340644editdlrm
suffix_table.hpp14070644editdlrm
traffic_lights.hpp5140644editdlrm
traffic_signals.hpp6560644editdlrm
travel_mode.hpp36660644editdlrm
turn_lane_types.hpp37540644editdlrm
turn_path.hpp74830644editdlrm
turn_path_compressor.hpp22200644editdlrm
turn_path_filter.hpp6690644editdlrm
way_restriction_map.hpp31140644editdlrm
Edit: /srv/osrm/osrm-backend/include/extractor/way_restriction_map.hpp (3114B)
#ifndef OSRM_EXTRACTOR_WAY_RESTRICTION_MAP_HPP_ #define OSRM_EXTRACTOR_WAY_RESTRICTION_MAP_HPP_ #include "extractor/restriction.hpp" #include "extractor/restriction_graph.hpp" #include "util/integer_range.hpp" #include "util/typedefs.hpp" // to access the turn restrictions #include #include #include namespace osrm::extractor { // Given the compressed representation of via-way turn restrictions, we provide a fast access into // the restrictions to indicate which turns may be restricted due to a way in between. class WayRestrictionMap { public: struct ViaEdge { NodeID from; NodeID to; }; WayRestrictionMap(const RestrictionGraph &restriction_graph); // Check if an edge between two nodes is part of a via-way. The check needs to be performed to // find duplicated nodes during the creation of edge-based-edges bool IsViaWayEdge(NodeID from, NodeID to) const; // There is a bijection between restriction graph via-nodes and edge-based duplicated nodes. // This counts the number of duplicated nodes contributed by the way restrictions. std::size_t NumberOfDuplicatedNodes() const; // For each restriction graph via-node, we return its node-based edge representation (from,to). // This is used to create the duplicate node in the edge based graph. std::vector DuplicatedViaEdges() const; // Access all duplicated NodeIDs from the restriction graph via-node represented by (from,to) std::vector DuplicatedNodeIDs(NodeID from, NodeID to) const; // Check whether a turn onto a given node is restricted, when coming from a duplicated node bool IsRestricted(DuplicatedNodeID duplicated_node, NodeID to) const; // Get the restrictions resulting in ^ IsRestricted. Requires IsRestricted to evaluate to true std::vector GetRestrictions(DuplicatedNodeID duplicated_node, NodeID to) const; // Changes edge_based_node to the correct duplicated_node_id in case node_based_from, // node_based_via, node_based_to can be identified as the start of a way restriction. NodeID RemapIfRestrictionStart(NodeID edge_based_node, NodeID node_based_from, NodeID node_based_via, NodeID node_based_to, NodeID number_of_edge_based_nodes) const; // Changes edge_based_node to the correct duplicated_node_id in case node_based_from, // node_based_via, node_based_to can be identified as successive via steps of a way restriction. NodeID RemapIfRestrictionVia(NodeID edge_based_target_node, NodeID edge_based_via_node, NodeID node_based_to, NodeID number_of_edge_based_nodes) const; private: const RestrictionGraph &restriction_graph; }; } // namespace osrm::extractor #endif // OSRM_EXTRACTOR_WAY_RESTRICTION_MAP_HPP_