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
 
std::string GetType () const
 
 RoadInfoSpeed (double s, double speed)
 
 RoadInfoSpeed (double s, double speed, std::string &type)
 
- 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
 
const std::string _type
 

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() [1/2]

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

Definition at line 18 of file RoadInfoSpeed.h.

◆ RoadInfoSpeed() [2/2]

carla::road::element::RoadInfoSpeed::RoadInfoSpeed ( double  s,
double  speed,
std::string &  type 
)
inline

Definition at line 23 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 27 of file RoadInfoSpeed.h.

◆ GetSpeed()

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

Definition at line 31 of file RoadInfoSpeed.h.

References _speed.

◆ GetType()

std::string carla::road::element::RoadInfoSpeed::GetType ( ) const
inline

Definition at line 35 of file RoadInfoSpeed.h.

References _type.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ _speed

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

Definition at line 41 of file RoadInfoSpeed.h.

Referenced by GetSpeed().

◆ _type

const std::string carla::road::element::RoadInfoSpeed::_type
private

Definition at line 42 of file RoadInfoSpeed.h.

Referenced by GetType().


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