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 

Definition at line 18 of file RoadInfoSpeed.h.

◆ RoadInfoSpeed() [2/2]

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

Definition at line 23 of file RoadInfoSpeed.h.

Member Function Documentation

◆ AcceptVisitor()

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

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

Definition at line 27 of file RoadInfoSpeed.h.

◆ GetSpeed()

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

Definition at line 31 of file RoadInfoSpeed.h.

References _speed.

◆ GetType()

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

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

Definition at line 41 of file RoadInfoSpeed.h.

Referenced by GetSpeed().

◆ _type

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

Definition at line 42 of file RoadInfoSpeed.h.

Referenced by GetType().

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