moved basic type definitions to osrm namespace

This commit is contained in:
Michael Krasnyk
2017-03-07 13:57:55 +01:00
committed by Patrick Niklaus
parent faaf82c837
commit ec3cda32fa
9 changed files with 46 additions and 52 deletions
+9 -9
View File
@@ -23,7 +23,7 @@ void CellStorageStatistics(const Graph &graph,
for (std::size_t level = 1; level < partition.GetNumberOfLevels(); ++level)
{
std::unordered_map<partition::CellID, std::size_t> cell_nodes;
std::unordered_map<CellID, std::size_t> cell_nodes;
for (auto node : util::irange(0u, graph.GetNumberOfNodes()))
{
++cell_nodes[partition.GetCell(level, node)];
@@ -55,14 +55,14 @@ void CellStorageStatistics(const Graph &graph,
}
util::Log() << "Level " << level << " #cells " << cell_nodes.size() << " #nodes " << total
<< ", source nodes: average " << source
<< " (" << (100. * source / total) << "%)"
<< " invalid " << invalid_sources
<< " (" << (100. * invalid_sources / total) << "%)"
<< ", destination nodes: average " << destination
<< " (" << (100. * destination / total) << "%)"
<< " invalid " << invalid_destinations
<< " (" << (100. * invalid_destinations / total) << "%)";
<< ", source nodes: average " << source << " (" << (100. * source / total)
<< "%)"
<< " invalid " << invalid_sources << " (" << (100. * invalid_sources / total)
<< "%)"
<< ", destination nodes: average " << destination << " ("
<< (100. * destination / total) << "%)"
<< " invalid " << invalid_destinations << " ("
<< (100. * invalid_destinations / total) << "%)";
}
}