CARLA
Loading...
Searching...
No Matches
carla::road::element::RoadInfoLaneAccess Class Referencefinal

This record defines access restrictions for certain types of road users. More...

#include <RoadInfoLaneAccess.h>

Inheritance diagram for carla::road::element::RoadInfoLaneAccess:

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
const std::string & GetRestriction () const
 RoadInfoLaneAccess (double s, std::string restriction)
Public Member Functions inherited from carla::road::element::RoadInfo
double GetDistance () const
 Distance from road's start location.
virtual ~RoadInfo ()=default

Private Attributes

const std::string _restriction

Additional Inherited Members

Protected Member Functions inherited from carla::road::element::RoadInfo
 RoadInfo (double distance=0.0)

Detailed Description

This record defines access restrictions for certain types of road users.

The record can be used to complement restrictions resulting from signs or signals in order to control the traffic flow in a scenario. Each entry is valid in direction of the increasing s co-ordinate until a new entry is defined. If multiple entries are defined, they must be listed in increasing order.

Definition at line 22 of file RoadInfoLaneAccess.h.

Constructor & Destructor Documentation

◆ RoadInfoLaneAccess()

carla::road::element::RoadInfoLaneAccess::RoadInfoLaneAccess ( double s,
std::string restriction )
inline

Member Function Documentation

◆ AcceptVisitor()

void carla::road::element::RoadInfoLaneAccess::AcceptVisitor ( RoadInfoVisitor & v)
inlinefinalvirtual

Implements carla::road::element::RoadInfo.

Definition at line 32 of file RoadInfoLaneAccess.h.

◆ GetRestriction()

const std::string & carla::road::element::RoadInfoLaneAccess::GetRestriction ( ) const
inline

Definition at line 36 of file RoadInfoLaneAccess.h.

References _restriction.

Member Data Documentation

◆ _restriction

const std::string carla::road::element::RoadInfoLaneAccess::_restriction
private

Definition at line 42 of file RoadInfoLaneAccess.h.

Referenced by GetRestriction(), and RoadInfoLaneAccess().


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