Skip to content

Commit

Permalink
[generator] fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gmoryes authored and mesozoic-drones committed Feb 27, 2020
1 parent aba785e commit 73220a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion generator/road_access_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ void ParseRoadAccessConditional(
size_t constexpr kVehicleCount = static_cast<size_t>(VehicleType::Count);
CHECK_EQUAL(kVehicleCount, roadAccessByVehicleType.size(), ());
array<RoadAccess::WayToAccessConditional, kVehicleCount> wayToAccessConditional;
// TODO point is not supported yet.
array<RoadAccess::PointToAccessConditional, kVehicleCount> pointToAccessConditional;

string buffer;
VehicleType vehicleType;
Expand Down Expand Up @@ -311,7 +313,10 @@ void ParseRoadAccessConditional(
}

for (size_t i = 0; i < roadAccessByVehicleType.size(); ++i)
roadAccessByVehicleType[i].SetAccessConditional(move(wayToAccessConditional[i]));
{
roadAccessByVehicleType[i].SetAccessConditional(move(wayToAccessConditional[i]),
move(pointToAccessConditional[i]));
}
}

// If |elem| has access tag from |mapping|, returns corresponding RoadAccess::Type.
Expand Down
1 change: 0 additions & 1 deletion routing/road_access.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class RoadAccess final
using PointToAccess = ska::flat_hash_map<RoadPoint, RoadAccess::Type, RoadPoint::Hash>;
using WayToAccessConditional = ska::flat_hash_map<uint32_t, Conditional>;
using PointToAccessConditional = ska::flat_hash_map<RoadPoint, Conditional, RoadPoint::Hash>;
// TODO (@gmoryes) add PointToAccessConditional

WayToAccess const & GetWayToAccess() const { return m_wayToAccess; }
PointToAccess const & GetPointToAccess() const { return m_pointToAccess; }
Expand Down

0 comments on commit 73220a2

Please sign in to comment.