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

Method PopulateLayout

src/storage/storage.cpp:370–380  ·  view source on GitHub ↗

* This function examines all our data files and figures out how much * memory needs to be allocated, and the position of each data structure * in that big block. It updates the fields in the layout parameter. */

Source from the content-addressed store, hash-verified

368 * in that big block. It updates the fields in the layout parameter.
369 */
370void Storage::PopulateLayout(storage::BaseDataLayout &layout,
371 const std::vector<std::pair<bool, std::filesystem::path>> &files)
372{
373 for (const auto &file : files)
374 {
375 if (std::filesystem::exists(file.second))
376 {
377 populateLayoutFromFile(file.second, layout);
378 }
379 }
380}
381
382void Storage::PopulateStaticData(const SharedDataIndex &index)
383{

Callers 1

Calls 1

populateLayoutFromFileFunction · 0.85

Tested by

no test coverage detected