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

Function read

include/contractor/serialization.hpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <storage::Ownership Ownership>
31void read(storage::tar::FileReader &reader,
32 const std::string &name,
33 detail::ContractedMetric<Ownership> &metric)
34{
35 util::serialization::read(reader, name + "/contracted_graph", metric.graph);
36
37 metric.edge_filter.resize(reader.ReadElementCount64(name + "/exclude"));
38 for (const auto index : util::irange<std::size_t>(0, metric.edge_filter.size()))
39 {
40 storage::serialization::read(reader,
41 name + "/exclude/" + std::to_string(index) + "/edge_filter",
42 metric.edge_filter[index]);
43 }
44}
45} // namespace osrm::contractor::serialization
46
47#endif

Callers 1

readGraphFunction · 0.70

Calls 4

to_stringFunction · 0.85
resizeMethod · 0.45
ReadElementCount64Method · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected