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

Function readGraph

include/customizer/files.hpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73// reads .osrm.mldgr file
74template <typename MultiLevelGraphT>
75inline void readGraph(const std::filesystem::path &path,
76 MultiLevelGraphT &graph,
77 std::uint32_t &connectivity_checksum)
78{
79 static_assert(std::is_same<customizer::MultiLevelEdgeBasedGraphView, MultiLevelGraphT>::value ||
80 std::is_same<customizer::MultiLevelEdgeBasedGraph, MultiLevelGraphT>::value,
81 "");
82
83 storage::tar::FileReader reader{path, storage::tar::FileReader::VerifyFingerprint};
84
85 reader.ReadInto("/mld/connectivity_checksum", connectivity_checksum);
86 serialization::read(reader, "/mld/multilevelgraph", graph);
87}
88
89// writes .osrm.mldgr file
90template <typename MultiLevelGraphT>

Callers

nothing calls this directly

Calls 2

readFunction · 0.70
ReadIntoMethod · 0.45

Tested by

no test coverage detected