maliput
|
An abstract interface for providing the mapping from Intersection::Id to Intersection.
#include <include/maliput/api/intersection_book.h>
Public Member Functions | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (IntersectionBook) | |
virtual | ~IntersectionBook ()=default |
std::vector< Intersection * > | GetIntersections () |
Gets a list of all Intersections within this book. More... | |
Intersection * | GetIntersection (const Intersection::Id &id) |
Gets the specified Intersection. More... | |
Intersection * | FindIntersection (const rules::TrafficLight::Id &id) |
Find the intersection which contains api::rules::TrafficLight::Id. More... | |
Intersection * | FindIntersection (const rules::DiscreteValueRule::Id &id) |
Find the intersection which contains api::rules::DiscreteValueRule::Id. More... | |
Intersection * | FindIntersection (const InertialPosition &inertial_pos) |
Find the intersection which contains api::rules::DiscreteValueRule::Id. More... | |
Intersection * | FindIntersection (const rules::RightOfWayRule::Id &id) |
Find the intersection which contains api::rules::RightOfWayRule::Id. More... | |
Protected Member Functions | |
IntersectionBook ()=default | |
|
virtualdefault |
Reimplemented in IntersectionBook.
|
protecteddefault |
Intersection* FindIntersection | ( | const InertialPosition & | inertial_pos | ) |
Find the intersection which contains api::rules::DiscreteValueRule::Id.
inertial_pos | A position in Inertial-Frame. |
inertial_pose
. When none of the Intersections have overlap with inertial_pose
, nullptr is returned. Intersection* FindIntersection | ( | const rules::DiscreteValueRule::Id & | id | ) |
Find the intersection which contains api::rules::DiscreteValueRule::Id.
id | A rules::DiscreteValueRule::Id. |
id
. When none of the Intersections have a rules::DiscreteValueRule with id
, nullptr is returned. Intersection* FindIntersection | ( | const rules::RightOfWayRule::Id & | id | ) |
Find the intersection which contains api::rules::RightOfWayRule::Id.
id | A rules::RightOfWayRule::Id. |
id
. When none of the Intersections have a rules::RightOfWayRule with id
, nullptr is returned. Intersection* FindIntersection | ( | const rules::TrafficLight::Id & | id | ) |
Find the intersection which contains api::rules::TrafficLight::Id.
id | A rules::TrafficLight::Id. |
id
. When none of the Intersections have a rules::TrafficLight with id
, nullptr is returned. Intersection* GetIntersection | ( | const Intersection::Id & | id | ) |
Gets the specified Intersection.
Returns nullptr if id
is unrecognized. Otherwise, the returned pointer is guaranteed to remain valid throughout the lifetime of this IntersectionBook's instance.
std::vector<Intersection*> GetIntersections | ( | ) |
Gets a list of all Intersections within this book.
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN | ( | IntersectionBook | ) |