Basic general-purpose concrete implementation of the RoadGeometry::IdIndex interface.
#include <include/maliput/api/basic_id_index.h>
◆ BasicIdIndex()
◆ ~BasicIdIndex()
◆ AddBranchPoint()
void AddBranchPoint |
( |
const BranchPoint * |
branch_point | ) |
|
Adds branch_point
to the index.
- Exceptions
-
std::exception | if branch_point's id() already exists in the index. |
- Precondition
branch_point
is not nullptr.
◆ AddJunction()
void AddJunction |
( |
const Junction * |
junction | ) |
|
Adds junction
to the index.
- Exceptions
-
std::exception | if junction's id() already exists in the index. |
- Precondition
junction
is not nullptr.
◆ AddLane()
void AddLane |
( |
const Lane * |
lane | ) |
|
Adds lane
to the index.
- Exceptions
-
std::exception | if lane's id() already exists in the index. |
- Precondition
lane
is not nullptr.
◆ AddSegment()
void AddSegment |
( |
const Segment * |
segment | ) |
|
Adds segment
to the index.
- Exceptions
-
std::exception | if segment's id() already exists in the index. |
- Precondition
segment
is not nullptr.
◆ MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN()
◆ WalkAndAddAll()
Walks the object graph rooted at road_geometry
and adds all components (Lane, Segment, Junction, BranchPoint) to the index.
- Exceptions
-
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. |
- Precondition
road_geometry
is not nullptr.
The documentation for this class was generated from the following files: