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;
const geom::GeoLocation & GetGeoReference() const
const std::unordered_map< ContId, std::unique_ptr< Controller > > & GetControllers() const
std::unordered_map< JuncId, Junction > & GetJunctions()
Junction * GetJunction(JuncId id)
std::unordered_map< RoadId, Road > & GetRoads()
bool ContainsRoad(RoadId id) const
std::unordered_map< SignId, std::unique_ptr< Signal > > _signals
const std::unordered_map< JuncId, Junction > & GetJunctions() const
Road & GetRoad(const RoadId id)
This file contains definitions of common data structures used in traffic manager. ...
std::unordered_map< JuncId, Junction > _junctions
Inherit (privately) to suppress copy construction and assignment.
const std::unordered_map< SignId, std::unique_ptr< Signal > > & GetSignals() const
auto GetRoadInfo(const RoadId id, const double s)
std::unordered_map< RoadId, Road > _roads
Lane & GetLaneById(SectionId section_id, LaneId lane_id)
auto GetLaneInfo(const RoadId road_id, const SectionId section_id, const LaneId lane_id, const double s)
std::unordered_map< ContId, std::unique_ptr< Controller > > _controllers
const std::unordered_map< RoadId, Road > & GetRoads() const
size_t GetRoadCount() const
geom::GeoLocation _geo_reference