CARLA
Loading...
Searching...
No Matches
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.

References _id, and _s.

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::road::IsLanePresent().

◆ GetDistance()

◆ GetId()

◆ 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]

◆ 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()

◆ GetRoad()

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

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

References _road.

Referenced by GetLength(), and carla::road::Lane::GetRoad().

Member Data Documentation

◆ _id

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

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

Referenced by GetId(), and LaneSection().

◆ _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(), GetLength(), and LaneSection().

◆ 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: