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... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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 | ) |