CARLA
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
carla::road::MapData Class Reference

#include <MapData.h>

+ Inheritance diagram for carla::road::MapData:

Public Member Functions

bool ContainsRoad (RoadId id) const
 
const std::unordered_map< ContId, std::unique_ptr< Controller > > & GetControllers () const
 
const geom::GeoProjection & GetGeoProjection () const
 
const geom::GeoLocation & GetGeoReference () const
 
Junction * GetJunction (JuncId id)
 
const Junction * GetJunction (JuncId id) const
 
std::unordered_map< JuncId, Junction > & GetJunctions ()
 
const std::unordered_map< JuncId, Junction > & GetJunctions () const
 
template<typename T >
auto GetLaneInfo (const RoadId road_id, const SectionId section_id, const LaneId lane_id, const double s)
 
Road & GetRoad (const RoadId id)
 
const Road & GetRoad (const RoadId id) const
 
size_t GetRoadCount () const
 
template<typename T >
auto GetRoadInfo (const RoadId id, const double s)
 
std::unordered_map< RoadId, Road > & GetRoads ()
 
const std::unordered_map< RoadId, Road > & GetRoads () const
 
const std::unordered_map< SignId, std::unique_ptr< Signal > > & GetSignals () const
 
const std::unordered_map< StencilId, std::unique_ptr< Stencil > > & GetStencils () const
 

Private Member Functions

 MapData ()=default
 
- Private Member Functions inherited from carla::MovableNonCopyable
 MovableNonCopyable ()=default
 
 MovableNonCopyable (const MovableNonCopyable &)=delete
 
 MovableNonCopyable (MovableNonCopyable &&)=default
 
MovableNonCopyable & operator= (const MovableNonCopyable &)=delete
 
MovableNonCopyable & operator= (MovableNonCopyable &&)=default
 

Private Attributes

std::unordered_map< ContId, std::unique_ptr< Controller > > _controllers
 
geom::GeoProjection _geo_projection
 
geom::GeoLocation _geo_reference
 
std::unordered_map< JuncId, Junction > _junctions
 
std::unordered_map< RoadId, Road > _roads
 
std::unordered_map< SignId, std::unique_ptr< Signal > > _signals
 
std::unordered_map< StencilId, std::unique_ptr< Stencil > > _stencils
 

Friends

class MapBuilder
 

Detailed Description

Definition at line 31 of file MapData.h.

Constructor & Destructor Documentation

◆ MapData()

carla::road::MapData::MapData ( )
privatedefault

Member Function Documentation

◆ ContainsRoad()

bool carla::road::MapData::ContainsRoad ( RoadId  id) const
inline

◆ GetControllers()

const std::unordered_map< ContId, std::unique_ptr< Controller > > & carla::road::MapData::GetControllers ( ) const
inline

Definition at line 88 of file MapData.h.

References _controllers.

Referenced by carla::road::Map::GetControllers().

◆ GetGeoProjection()

const geom::GeoProjection & carla::road::MapData::GetGeoProjection ( ) const
inline

Definition at line 38 of file MapData.h.

References _geo_projection.

Referenced by carla::road::Map::GetGeoProjection().

◆ GetGeoReference()

const geom::GeoLocation & carla::road::MapData::GetGeoReference ( ) const
inline

Definition at line 34 of file MapData.h.

References _geo_reference.

Referenced by carla::road::Map::GetGeoReference().

◆ GetJunction() [1/2]

Junction * carla::road::MapData::GetJunction ( JuncId  id)

◆ GetJunction() [2/2]

const Junction * carla::road::MapData::GetJunction ( JuncId  id) const

Definition at line 37 of file MapData.cpp.

References _junctions.

◆ GetJunctions() [1/2]

std::unordered_map< JuncId, Junction > & carla::road::MapData::GetJunctions ( )

◆ GetJunctions() [2/2]

const std::unordered_map< JuncId, Junction > & carla::road::MapData::GetJunctions ( ) const
inline

Definition at line 50 of file MapData.h.

References _junctions.

◆ GetLaneInfo()

template<typename T >
auto carla::road::MapData::GetLaneInfo ( const RoadId  road_id,
const SectionId  section_id,
const LaneId  lane_id,
const double  s 
)
inline

Definition at line 72 of file MapData.h.

References carla::road::Road::GetLaneById(), GetRoad(), and road_id.

◆ GetRoad() [1/2]

Road & carla::road::MapData::GetRoad ( const RoadId  id)

◆ GetRoad() [2/2]

const Road & carla::road::MapData::GetRoad ( const RoadId  id) const

Definition at line 25 of file MapData.cpp.

References GetRoad().

◆ GetRoadCount()

size_t carla::road::MapData::GetRoadCount ( ) const
inline

Definition at line 80 of file MapData.h.

References _roads.

◆ GetRoadInfo()

template<typename T >
auto carla::road::MapData::GetRoadInfo ( const RoadId  id,
const double  s 
)
inline

Definition at line 67 of file MapData.h.

References GetRoad().

◆ GetRoads() [1/2]

std::unordered_map< RoadId, Road > & carla::road::MapData::GetRoads ( )

◆ GetRoads() [2/2]

const std::unordered_map< RoadId, Road > & carla::road::MapData::GetRoads ( ) const
inline

Definition at line 44 of file MapData.h.

References _roads.

◆ GetSignals()

const std::unordered_map< SignId, std::unique_ptr< Signal > > & carla::road::MapData::GetSignals ( ) const
inline

Definition at line 84 of file MapData.h.

References _signals.

Referenced by carla::road::Map::GetSignals().

◆ GetStencils()

const std::unordered_map< StencilId, std::unique_ptr< Stencil > > & carla::road::MapData::GetStencils ( ) const
inline

Definition at line 92 of file MapData.h.

References _stencils.

Referenced by carla::road::Map::GetStencils().

Friends And Related Symbol Documentation

◆ MapBuilder

friend class MapBuilder
friend

Definition at line 98 of file MapData.h.

Member Data Documentation

◆ _controllers

std::unordered_map<ContId, std::unique_ptr<Controller> > carla::road::MapData::_controllers
private

◆ _geo_projection

geom::GeoProjection carla::road::MapData::_geo_projection
private

Definition at line 104 of file MapData.h.

Referenced by GetGeoProjection(), and carla::road::MapBuilder::SetGeoProjection().

◆ _geo_reference

geom::GeoLocation carla::road::MapData::_geo_reference
private

Definition at line 102 of file MapData.h.

Referenced by GetGeoReference(), and carla::road::MapBuilder::SetGeoReference().

◆ _junctions

std::unordered_map<JuncId, Junction> carla::road::MapData::_junctions
private

◆ _roads

std::unordered_map<RoadId, Road> carla::road::MapData::_roads
private

◆ _signals

std::unordered_map<SignId, std::unique_ptr<Signal> > carla::road::MapData::_signals
private

◆ _stencils

std::unordered_map<StencilId, std::unique_ptr<Stencil> > carla::road::MapData::_stencils
private

The documentation for this class was generated from the following files: