Fix formatting
This commit is contained in:
@@ -35,6 +35,6 @@ template <typename T> Block make_block(uint64_t num_entries)
|
||||
static_assert(sizeof(T) % alignof(T) == 0, "aligned T* can't be used as an array pointer");
|
||||
return Block{num_entries, sizeof(T) * num_entries, 0};
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif
|
||||
|
||||
@@ -384,6 +384,6 @@ class BufferWriter
|
||||
private:
|
||||
std::ostringstream output_stream;
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage::io
|
||||
|
||||
#endif
|
||||
|
||||
@@ -79,6 +79,6 @@ struct IOConfig
|
||||
std::vector<boost::filesystem::path> optional_input_files;
|
||||
std::vector<boost::filesystem::path> output_files;
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,6 +7,6 @@ namespace osrm::storage::io
|
||||
class FileReader;
|
||||
class FileWriter;
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage::io
|
||||
|
||||
#endif
|
||||
|
||||
@@ -264,6 +264,6 @@ inline void write(io::BufferWriter &writer, const BaseDataLayout &layout)
|
||||
{
|
||||
write(writer, layout.blocks);
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage::serialization
|
||||
|
||||
#endif
|
||||
|
||||
@@ -93,6 +93,6 @@ class SharedDataIndex
|
||||
std::vector<AllocatedRegion> regions;
|
||||
std::unordered_map<std::string, std::uint32_t> block_to_region;
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif
|
||||
|
||||
@@ -296,6 +296,6 @@ struct SharedRegionRegister
|
||||
std::array<SharedRegion, MAX_SHARED_REGIONS> regions;
|
||||
std::array<bool, MAX_SHM_KEYS> shm_key_in_use;
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif /* SHARED_DATA_TYPE_HPP */
|
||||
|
||||
@@ -309,6 +309,6 @@ std::unique_ptr<SharedMemory> makeSharedMemory(const IdentifierT &id, const uint
|
||||
throw util::exception(e.what() + SOURCE_REF);
|
||||
}
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif // SHARED_MEMORY_HPP
|
||||
|
||||
@@ -10,6 +10,6 @@ enum class Ownership
|
||||
View,
|
||||
External
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif // SHARED_MEMORY_OWNERSHIP_HPP
|
||||
|
||||
@@ -232,7 +232,7 @@ template <typename Data> struct SharedMonitor
|
||||
bi::shared_memory_object shmem;
|
||||
bi::mapped_region region;
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#undef USE_BOOST_INTERPROCESS_CONDITION
|
||||
|
||||
|
||||
@@ -59,6 +59,6 @@ class Storage
|
||||
private:
|
||||
StorageConfig config;
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif
|
||||
|
||||
@@ -73,6 +73,6 @@ struct StorageConfig final : IOConfig
|
||||
{
|
||||
}
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif
|
||||
|
||||
@@ -308,6 +308,6 @@ class FileWriter
|
||||
boost::filesystem::path path;
|
||||
mtar_t handle;
|
||||
};
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage::tar
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,6 +7,6 @@ namespace osrm::storage::tar
|
||||
class FileReader;
|
||||
class FileWriter;
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage::tar
|
||||
|
||||
#endif
|
||||
|
||||
@@ -362,6 +362,6 @@ inline auto make_filtered_graph_view(const SharedDataIndex &index,
|
||||
|
||||
return util::FilteredGraphView<contractor::QueryGraphView>({node_list, edge_list}, edge_filter);
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::storage
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user