|
maliput
|
A concrete implementation of the api::rules::TrafficLightBook abstract interface.
It allows users to obtain a TrafficLight using its ID.
#include <include/maliput/base/traffic_light_book.h>
Public Member Functions | |
| MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (TrafficLightBook) | |
| TrafficLightBook () | |
| ~TrafficLightBook () override | |
| void | AddTrafficLight (std::unique_ptr< const api::rules::TrafficLight > traffic_light) |
Adds traffic_light to this TrafficLightBook. More... | |
Public Member Functions inherited from TrafficLightBook | |
| MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (TrafficLightBook) | |
| std::vector< const TrafficLight * > | TrafficLights () const |
| Returns all TrafficLights in this book. More... | |
| const TrafficLight * | GetTrafficLight (const TrafficLight::Id &id) const |
Gets the specified TrafficLight. Returns nullptr if id is unrecognized. More... | |
| std::vector< const TrafficLight * > | FindByLane (const LaneId &lane_id) const |
Returns all TrafficLights whose related_lanes() includes lane_id. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TrafficLightBook | |
| TrafficLightBook ()=default | |
| TrafficLightBook | ( | ) |
|
overridevirtualdefault |
Reimplemented from TrafficLightBook.
| void AddTrafficLight | ( | std::unique_ptr< const api::rules::TrafficLight > | traffic_light | ) |
Adds traffic_light to this TrafficLightBook.
| std::exception | if an api::rules::TrafficLight with the same ID already exists. |
| MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN | ( | TrafficLightBook | ) |