TrafficLightBook Class Reference

Detailed Description

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>

Inheritance diagram for TrafficLightBook:

Public Member Functions

 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
std::vector< const TrafficLight * > TrafficLights () const
 Returns all TrafficLights in this book. More...
const TrafficLightGetTrafficLight (const TrafficLight::Id &id) const
 Gets the specified TrafficLight. Returns nullptr if id is unrecognized. More...

Additional Inherited Members

- Protected Member Functions inherited from TrafficLightBook
 TrafficLightBook ()=default

Constructor & Destructor Documentation

◆ TrafficLightBook()

◆ ~TrafficLightBook()

~TrafficLightBook ( )

Reimplemented from TrafficLightBook.

Member Function Documentation

◆ AddTrafficLight()

void AddTrafficLight ( std::unique_ptr< const api::rules::TrafficLight traffic_light)

Adds traffic_light to this TrafficLightBook.

std::exceptionif an api::rules::TrafficLight with the same ID already exists.



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