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

#include <LaneSection.h>

+ Inheritance diagram for carla::road::LaneSection:

Public Member Functions

bool ContainsLane (LaneId id) const
 
double GetDistance () const
 
SectionId GetId () const
 
Lane * GetLane (const LaneId id)
 
const Lane * GetLane (const LaneId id) const
 
std::map< LaneId, Lane > & GetLanes ()
 
const std::map< LaneId, Lane > & GetLanes () const
 
std::vector< Lane * > GetLanesOfType (Lane::LaneType type)
 
double GetLength () const
 
Road * GetRoad () const
 
 LaneSection (SectionId id, double s)
 

Private Attributes

const SectionId _id = 0u
 
geom::CubicPolynomial _lane_offset
 
std::map< LaneId, Lane > _lanes
 
Road * _road = nullptr
 
const double _s = 0.0
 
friend MapBuilder
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 24 of file road/LaneSection.h.

Constructor & Destructor Documentation

◆ LaneSection()

carla::road::LaneSection::LaneSection ( SectionId  id,
double  s 
)
inlineexplicit

Definition at line 27 of file road/LaneSection.h.

Member Function Documentation

◆ ContainsLane()

bool carla::road::LaneSection::ContainsLane ( LaneId  id) const
inline

Definition at line 39 of file road/LaneSection.h.

References _lanes.

Referenced by carla::client::LaneSection::ContainsLane(), and carla::road::IsLanePresent().

◆ GetDistance()

double carla::road::LaneSection::GetDistance ( ) const

◆ GetId()

SectionId carla::road::LaneSection::GetId ( ) const

◆ GetLane() [1/2]

Lane * carla::road::LaneSection::GetLane ( const LaneId  id)

◆ GetLane() [2/2]

const Lane * carla::road::LaneSection::GetLane ( const LaneId  id) const

Definition at line 39 of file road/LaneSection.cpp.

References _lanes.

◆ GetLanes() [1/2]

std::map< LaneId, Lane > & carla::road::LaneSection::GetLanes ( )

◆ GetLanes() [2/2]

const std::map< LaneId, Lane > & carla::road::LaneSection::GetLanes ( ) const

Definition at line 51 of file road/LaneSection.cpp.

References _lanes.

◆ GetLanesOfType()

std::vector< Lane * > carla::road::LaneSection::GetLanesOfType ( Lane::LaneType  type)

Definition at line 55 of file road/LaneSection.cpp.

References _lanes.

◆ GetLength()

double carla::road::LaneSection::GetLength ( ) const

◆ GetRoad()

Road * carla::road::LaneSection::GetRoad ( ) const

Member Data Documentation

◆ _id

const SectionId carla::road::LaneSection::_id = 0u
private

Definition at line 55 of file road/LaneSection.h.

Referenced by GetId().

◆ _lane_offset

geom::CubicPolynomial carla::road::LaneSection::_lane_offset
private

Definition at line 63 of file road/LaneSection.h.

◆ _lanes

std::map<LaneId, Lane> carla::road::LaneSection::_lanes
private

◆ _road

Road* carla::road::LaneSection::_road = nullptr
private

Definition at line 59 of file road/LaneSection.h.

Referenced by carla::road::MapBuilder::AddRoadSection(), and GetRoad().

◆ _s

const double carla::road::LaneSection::_s = 0.0
private

Definition at line 57 of file road/LaneSection.h.

Referenced by GetDistance(), and GetLength().

◆ MapBuilder

friend carla::road::LaneSection::MapBuilder
private

Definition at line 53 of file road/LaneSection.h.


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