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

Function readIntersections

include/extractor/files.hpp:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39// read the .osrm.icd file
40template <typename IntersectionBearingsT, typename EntryClassVectorT>
41void readIntersections(const std::filesystem::path &path,
42 IntersectionBearingsT &intersection_bearings,
43 EntryClassVectorT &entry_classes)
44{
45 static_assert(std::is_same<IntersectionBearingsContainer, IntersectionBearingsT>::value ||
46 std::is_same<IntersectionBearingsView, IntersectionBearingsT>::value,
47 "");
48
49 storage::tar::FileReader reader(path, storage::tar::FileReader::VerifyFingerprint);
50
51 serialization::read(reader, "/common/intersection_bearings", intersection_bearings);
52 storage::serialization::read(reader, "/common/entry_classes", entry_classes);
53}
54
55// reads .osrm.properties
56inline void readProfileProperties(const std::filesystem::path &path, ProfileProperties &properties)

Callers 1

PopulateStaticDataMethod · 0.85

Calls 1

readFunction · 0.70

Tested by

no test coverage detected