|
maliput
|
Abstract interface for providing the mapping from RoadMarking::Id to RoadMarking.
This follows the same pattern as RoadObjectBook and TrafficSignBook. Backend implementations are responsible for populating the book with the road markings present in their road network data sources.
#include <include/maliput/api/objects/road_marking_book.h>
Public Member Functions | |
| virtual | ~RoadMarkingBook ()=default |
| std::vector< const RoadMarking * > | RoadMarkings () const |
| Returns all RoadMarkings in this book. More... | |
| const RoadMarking * | GetRoadMarking (const RoadMarking::Id &id) const |
Gets the specified RoadMarking. Returns nullptr if id is unrecognized. More... | |
| std::vector< const RoadMarking * > | FindByLane (const LaneId &lane_id) const |
Returns all RoadMarkings whose related_lanes() includes lane_id. More... | |
| std::vector< const RoadMarking * > | FindByType (RoadMarkingType type) const |
Returns all RoadMarkings whose type matches type. More... | |
Protected Member Functions | |
| RoadMarkingBook ()=default | |
|
virtualdefault |
Reimplemented in RoadMarkingBook.
|
protecteddefault |
| std::vector<const RoadMarking*> FindByLane | ( | const LaneId & | lane_id | ) | const |
Returns all RoadMarkings whose related_lanes() includes lane_id.
Returns an empty vector if no markings are associated with the given lane.
| std::vector<const RoadMarking*> FindByType | ( | RoadMarkingType | type | ) | const |
Returns all RoadMarkings whose type matches type.
Returns an empty vector if no markings match.
| const RoadMarking* GetRoadMarking | ( | const RoadMarking::Id & | id | ) | const |
Gets the specified RoadMarking. Returns nullptr if id is unrecognized.
| std::vector<const RoadMarking*> RoadMarkings | ( | ) | const |
Returns all RoadMarkings in this book.