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

Function writeIntersections

include/extractor/files.hpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23// writes the .osrm.icd file
24template <typename IntersectionBearingsT, typename EntryClassVectorT>
25void writeIntersections(const std::filesystem::path &path,
26 const IntersectionBearingsT &intersection_bearings,
27 const EntryClassVectorT &entry_classes)
28{
29 static_assert(std::is_same<IntersectionBearingsContainer, IntersectionBearingsT>::value ||
30 std::is_same<IntersectionBearingsView, IntersectionBearingsT>::value,
31 "");
32
33 storage::tar::FileWriter writer(path, storage::tar::FileWriter::GenerateFingerprint);
34
35 serialization::write(writer, "/common/intersection_bearings", intersection_bearings);
36 storage::serialization::write(writer, "/common/entry_classes", entry_classes);
37}
38
39// read the .osrm.icd file
40template <typename IntersectionBearingsT, typename EntryClassVectorT>

Callers 1

ProcessGuidanceTurnsMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected