|
maliput
|
Basic general-purpose concrete implementation of the RoadGeometry::IdIndex interface.
#include <include/maliput/api/basic_id_index.h>
Public Member Functions | |
| MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (BasicIdIndex) | |
| BasicIdIndex ()=default | |
| ~BasicIdIndex () override=default | |
| void | AddLane (const Lane *lane) |
Adds lane to the index. More... | |
| void | AddSegment (const Segment *segment) |
Adds segment to the index. More... | |
| void | AddJunction (const Junction *junction) |
Adds junction to the index. More... | |
| void | AddBranchPoint (const BranchPoint *branch_point) |
Adds branch_point to the index. More... | |
| void | AddBoundary (const LaneBoundary *lane_boundary) |
Adds lane_boundary to the index. More... | |
| void | WalkAndAddAll (const RoadGeometry *road_geometry) |
Walks the object graph rooted at road_geometry and adds all components (Lane, Segment, Junction, BranchPoint) to the index. More... | |
Public Member Functions inherited from RoadGeometry::IdIndex | |
| virtual | ~IdIndex ()=default |
| const Lane * | GetLane (const LaneId &id) const |
Returns the Lane identified by id, or nullptr if id is unknown. More... | |
| const std::unordered_map< LaneId, const Lane * > & | GetLanes () const |
| const Segment * | GetSegment (const SegmentId &id) const |
Returns the Segment identified by id, or nullptr if id is unknown. More... | |
| const Junction * | GetJunction (const JunctionId &id) const |
Returns the Junction identified by id, or nullptr if id is unknown. More... | |
| const BranchPoint * | GetBranchPoint (const BranchPointId &id) const |
Returns the BranchPoint identified by id, or nullptr if id is unknown. More... | |
| const LaneBoundary * | GetLaneBoundary (const LaneBoundary::Id &id) const |
Returns the LaneBoundary identified by id, or nullptr if id is unknown. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from RoadGeometry::IdIndex | |
| IdIndex ()=default | |
|
default |
|
overridedefault |
| void AddBoundary | ( | const LaneBoundary * | lane_boundary | ) |
Adds lane_boundary to the index.
| std::exception | if lane_boundary's id() already exists in the index. |
lane_boundary is not nullptr. | void AddBranchPoint | ( | const BranchPoint * | branch_point | ) |
Adds branch_point to the index.
| std::exception | if branch_point's id() already exists in the index. |
branch_point is not nullptr. | void AddJunction | ( | const Junction * | junction | ) |
Adds junction to the index.
| std::exception | if junction's id() already exists in the index. |
junction is not nullptr. | void AddLane | ( | const Lane * | lane | ) |
Adds lane to the index.
| std::exception | if lane's id() already exists in the index. |
lane is not nullptr. | void AddSegment | ( | const Segment * | segment | ) |
Adds segment to the index.
| std::exception | if segment's id() already exists in the index. |
segment is not nullptr. | MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN | ( | BasicIdIndex | ) |
| void WalkAndAddAll | ( | const RoadGeometry * | road_geometry | ) |
Walks the object graph rooted at road_geometry and adds all components (Lane, Segment, Junction, BranchPoint) to the index.
| std::exception | if the graph of road_geometry contains any duplicate id's, or if any of its id's already exist in the index. |
road_geometry is not nullptr.