clang-format
This commit is contained in:
parent
4929d1297e
commit
8ff5a22799
@ -62,7 +62,6 @@ inline void writeLevels(const boost::filesystem::path &path, const std::vector<f
|
||||
|
||||
storage::serialization::write(writer, node_levels);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -185,7 +185,8 @@ bool Engine<routing_algorithms::corech::Algorithm>::CheckCompability(const Engin
|
||||
|
||||
auto mem = storage::makeSharedMemory(barrier.data().region);
|
||||
auto layout = reinterpret_cast<storage::DataLayout *>(mem->Ptr());
|
||||
return layout->GetBlockSize(storage::DataLayout::CH_CORE_MARKER) > sizeof(std::uint64_t) + sizeof(util::FingerPrint);
|
||||
return layout->GetBlockSize(storage::DataLayout::CH_CORE_MARKER) >
|
||||
sizeof(std::uint64_t) + sizeof(util::FingerPrint);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -72,10 +72,13 @@ class FileReader
|
||||
// restore the current position
|
||||
input_stream.seekg(positon, std::ios::beg);
|
||||
|
||||
if(fingerprint == FingerprintFlag::VerifyFingerprint) {
|
||||
return std::size_t(file_size) - sizeof(util::FingerPrint);
|
||||
} else {
|
||||
return file_size;
|
||||
if (fingerprint == FingerprintFlag::VerifyFingerprint)
|
||||
{
|
||||
return std::size_t(file_size) - sizeof(util::FingerPrint);
|
||||
}
|
||||
else
|
||||
{
|
||||
return file_size;
|
||||
}
|
||||
}
|
||||
|
||||
@ -168,7 +171,6 @@ class FileReader
|
||||
const boost::filesystem::path filepath;
|
||||
boost::filesystem::ifstream input_stream;
|
||||
FingerprintFlag fingerprint;
|
||||
|
||||
};
|
||||
|
||||
class FileWriter
|
||||
|
@ -394,7 +394,8 @@ void Storage::PopulateLayout(DataLayout &layout)
|
||||
|
||||
{
|
||||
// Loading turn lane data
|
||||
io::FileReader lane_data_file(config.turn_lane_data_path, io::FileReader::VerifyFingerprint);
|
||||
io::FileReader lane_data_file(config.turn_lane_data_path,
|
||||
io::FileReader::VerifyFingerprint);
|
||||
const auto lane_tuple_count = lane_data_file.ReadElementCount64();
|
||||
layout.SetBlockSize<util::guidance::LaneTupleIdPair>(DataLayout::TURN_LANE_DATA,
|
||||
lane_tuple_count);
|
||||
@ -541,7 +542,8 @@ void Storage::PopulateData(const DataLayout &layout, char *memory_ptr)
|
||||
|
||||
// Turn lane data
|
||||
{
|
||||
io::FileReader lane_data_file(config.turn_lane_data_path, io::FileReader::VerifyFingerprint);
|
||||
io::FileReader lane_data_file(config.turn_lane_data_path,
|
||||
io::FileReader::VerifyFingerprint);
|
||||
|
||||
const auto lane_tuple_count = lane_data_file.ReadElementCount64();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user