maliput_multilane
|
An implementation of api::BranchPoint.
#include <src/maliput_multilane/branch_point.h>
Public Member Functions | |
BranchPoint (const api::BranchPointId &id, const api::RoadGeometry *road_geometry) | |
Constructs an empty BranchPoint. More... | |
const api::LaneEnd & | AddABranch (const api::LaneEnd &lane_end) |
Adds a LaneEnd to the "A side" of the BranchPoint. More... | |
const api::LaneEnd & | AddBBranch (const api::LaneEnd &lane_end) |
Adds a LaneEnd to the "B side" of the BranchPoint. More... | |
void | SetDefault (const api::LaneEnd &lane_end, const api::LaneEnd &default_branch) |
Sets the default branch for lane_end to default_branch . More... | |
~BranchPoint () override=default | |
Public Member Functions inherited from BranchPoint | |
BranchPointId | id () const |
const RoadGeometry * | road_geometry () const |
const LaneEndSet * | GetConfluentBranches (const LaneEnd &end) const |
const LaneEndSet * | GetOngoingBranches (const LaneEnd &end) const |
std::optional< LaneEnd > | GetDefaultBranch (const LaneEnd &end) const |
const LaneEndSet * | GetASide () const |
const LaneEndSet * | GetBSide () const |
Additional Inherited Members | |
Protected Member Functions inherited from BranchPoint | |
BranchPoint ()=default | |
BranchPoint | ( | const api::BranchPointId & | id, |
const api::RoadGeometry * | road_geometry | ||
) |
Constructs an empty BranchPoint.
road_geometry
must remain valid for the lifetime of this class.
|
overridevirtualdefault |
Reimplemented from BranchPoint.
const api::LaneEnd & AddABranch | ( | const api::LaneEnd & | lane_end | ) |
Adds a LaneEnd to the "A side" of the BranchPoint.
const api::LaneEnd & AddBBranch | ( | const api::LaneEnd & | lane_end | ) |
Adds a LaneEnd to the "B side" of the BranchPoint.
void SetDefault | ( | const api::LaneEnd & | lane_end, |
const api::LaneEnd & | default_branch | ||
) |
Sets the default branch for lane_end
to default_branch
.
The specified LaneEnds must belong to opposite sides of this BranchPoint.