MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / readEdgeBasedGraph

Function readEdgeBasedGraph

include/extractor/files.hpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91// reads .osrm.ebg file
92template <typename EdgeBasedEdgeVector>
93void readEdgeBasedGraph(const std::filesystem::path &path,
94 EdgeID &number_of_edge_based_nodes,
95 EdgeBasedEdgeVector &edge_based_edge_list,
96 std::uint32_t &connectivity_checksum)
97{
98 static_assert(std::is_same<typename EdgeBasedEdgeVector::value_type, EdgeBasedEdge>::value, "");
99
100 storage::tar::FileReader reader(path, storage::tar::FileReader::VerifyFingerprint);
101
102 reader.ReadInto("/common/number_of_edge_based_nodes", number_of_edge_based_nodes);
103 storage::serialization::read(reader, "/common/edge_based_edge_list", edge_based_edge_list);
104 reader.ReadInto("/common/connectivity_checksum", connectivity_checksum);
105}
106
107// reads .osrm.nbg_nodes
108template <typename CoordinatesT, typename PackedOSMIDsT>

Callers 2

LoadEdgeBasedGraphFunction · 0.85

Calls 2

readFunction · 0.70
ReadIntoMethod · 0.45

Tested by

no test coverage detected