/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/compressed_edge_container.hpp (3336B)
#ifndef GEOMETRY_COMPRESSOR_HPP_ #define GEOMETRY_COMPRESSOR_HPP_ #include "extractor/segment_data_container.hpp" #include "util/typedefs.hpp" #include #include #include namespace osrm::extractor { class CompressedEdgeContainer { public: struct OnewayCompressedEdge { public: NodeID node_id; // refers to an internal node-based-node SegmentWeight weight; // the weight of the edge leading to this node SegmentDuration duration; // the duration of the edge leading to this node }; using OnewayEdgeBucket = std::vector; CompressedEdgeContainer(); void CompressEdge(const EdgeID surviving_edge_id, const EdgeID removed_edge_id, const NodeID via_node_id, const NodeID target_node, const EdgeWeight weight1, const EdgeWeight weight2, const EdgeDuration duration1, const EdgeDuration duration2, // node-penalties can be added before/or after the traversal of an edge which // depends on whether we traverse the link forwards or backwards. const EdgeWeight node_weight_penalty = INVALID_EDGE_WEIGHT, const EdgeDuration node_duration_penalty = MAXIMAL_EDGE_DURATION); void AddUncompressedEdge(const EdgeID edge_id, const NodeID target_node, const EdgeWeight weight, const EdgeDuration duration); void InitializeBothwayVector(); unsigned ZipEdges(const unsigned f_edge_pos, const unsigned r_edge_pos); bool HasEntryForID(const EdgeID edge_id) const; bool HasZippedEntryForForwardID(const EdgeID edge_id) const; bool HasZippedEntryForReverseID(const EdgeID edge_id) const; void PrintStatistics() const; unsigned GetPositionForID(const EdgeID edge_id) const; unsigned GetZippedPositionForForwardID(const EdgeID edge_id) const; unsigned GetZippedPositionForReverseID(const EdgeID edge_id) const; const OnewayEdgeBucket &GetBucketReference(const EdgeID edge_id) const; bool IsTrivial(const EdgeID edge_id) const; NodeID GetFirstEdgeTargetID(const EdgeID edge_id) const; NodeID GetLastEdgeTargetID(const EdgeID edge_id) const; NodeID GetLastEdgeSourceID(const EdgeID edge_id) const; // Invalidates the internal storage std::unique_ptr ToSegmentData(); private: SegmentWeight ClipWeight(const EdgeWeight weight); SegmentDuration ClipDuration(const EdgeDuration duration); int free_list_maximum = 0; std::atomic_size_t clipped_weights{0}; std::atomic_size_t clipped_durations{0}; void IncreaseFreeList(); std::vector m_compressed_oneway_geometries; std::vector m_free_list; std::unordered_map m_edge_id_to_list_index_map; std::unordered_map m_forward_edge_id_to_zipped_index_map; std::unordered_map m_reverse_edge_id_to_zipped_index_map; std::unique_ptr segment_data; }; } // namespace osrm::extractor #endif // GEOMETRY_COMPRESSOR_HPP_