20#include <boost/iterator/transform_iterator.hpp>
22#include <unordered_map>
36 std::unordered_map<RoadId, Road> &
GetRoads();
38 const std::unordered_map<RoadId, Road> &
GetRoads()
const {
62 return GetRoad(
id).template GetInfo<T>(s);
78 const std::unordered_map<SignId, std::unique_ptr<Signal>> &
GetSignals()
const {
82 const std::unordered_map<ContId, std::unique_ptr<Controller>>&
GetControllers()
const {
94 std::unordered_map<RoadId, Road>
_roads;
98 std::unordered_map<SignId, std::unique_ptr<Signal>>
_signals;
Inherit (privately) to suppress copy construction and assignment.
std::unordered_map< RoadId, Road > _roads
const geom::GeoLocation & GetGeoReference() const
std::unordered_map< RoadId, Road > & GetRoads()
const std::unordered_map< RoadId, Road > & GetRoads() const
size_t GetRoadCount() const
Road & GetRoad(const RoadId id)
auto GetRoadInfo(const RoadId id, const double s)
const std::unordered_map< JuncId, Junction > & GetJunctions() const
std::unordered_map< ContId, std::unique_ptr< Controller > > _controllers
std::unordered_map< JuncId, Junction > _junctions
geom::GeoLocation _geo_reference
bool ContainsRoad(RoadId id) const
std::unordered_map< JuncId, Junction > & GetJunctions()
const std::unordered_map< SignId, std::unique_ptr< Signal > > & GetSignals() const
const std::unordered_map< ContId, std::unique_ptr< Controller > > & GetControllers() const
auto GetLaneInfo(const RoadId road_id, const SectionId section_id, const LaneId lane_id, const double s)
Junction * GetJunction(JuncId id)
std::unordered_map< SignId, std::unique_ptr< Signal > > _signals
Lane & GetLaneById(SectionId section_id, LaneId lane_id)
This file contains definitions of common data structures used in traffic manager.