CARLA
Public Member Functions | Private Attributes | List of all members
carla::road::element::RoadInfoSpeed Class Referencefinal

#include <RoadInfoSpeed.h>

+ Inheritance diagram for carla::road::element::RoadInfoSpeed:
+ Collaboration diagram for carla::road::element::RoadInfoSpeed:

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
 
double GetSpeed () const
 
 RoadInfoSpeed (double s, double speed)
 
- Public Member Functions inherited from carla::road::element::RoadInfo
double GetDistance () const
 Distance from road's start location. More...
 
virtual ~RoadInfo ()=default
 

Private Attributes

const double _speed
 

Additional Inherited Members

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

Detailed Description

Definition at line 15 of file RoadInfoSpeed.h.

Constructor & Destructor Documentation

◆ RoadInfoSpeed()

carla::road::element::RoadInfoSpeed::RoadInfoSpeed ( double  s,
double  speed 
)
inline

Definition at line 18 of file RoadInfoSpeed.h.

Member Function Documentation

◆ AcceptVisitor()

void carla::road::element::RoadInfoSpeed::AcceptVisitor ( RoadInfoVisitor v)
inlinefinalvirtual

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

Definition at line 22 of file RoadInfoSpeed.h.

◆ GetSpeed()

double carla::road::element::RoadInfoSpeed::GetSpeed ( ) const
inline

Definition at line 26 of file RoadInfoSpeed.h.

References _speed.

Member Data Documentation

◆ _speed

const double carla::road::element::RoadInfoSpeed::_speed
private

Definition at line 32 of file RoadInfoSpeed.h.

Referenced by GetSpeed().


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