maliput
|
Mock api::BranchPoint implementation; see mock_geometry.h.
#include <include/maliput/test_utilities/mock_geometry.h>
Public Member Functions | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (MockBranchPoint) | |
MockBranchPoint (const api::BranchPointId &id) | |
Constructs a partially-initialized MockBranchPoint. More... | |
![]() | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (BranchPoint) | |
BranchPoint (const api::BranchPointId &id) | |
Constructs an empty BranchPoint. More... | |
void | AddABranch (Lane *lane, api::LaneEnd::Which end) |
Adds the end of lane to the "A side" of this BranchPoint. More... | |
void | AddBBranch (Lane *lane, api::LaneEnd::Which end) |
Adds the end of lane to the "B side" of this 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 | |
void | AttachToRoadGeometry (common::Passkey< RoadGeometry >, const api::RoadGeometry *road_geometry) |
![]() | |
BranchPointId | id () const |
Returns the persistent identifier. More... | |
const RoadGeometry * | road_geometry () const |
Returns the RoadGeometry to which this BranchPoint belongs. More... | |
const LaneEndSet * | GetConfluentBranches (const LaneEnd &end) const |
Returns the set of LaneEnds on the same side as the given end , e.g., the LaneEnds merging with the given end . More... | |
const LaneEndSet * | GetOngoingBranches (const LaneEnd &end) const |
Returns the set of LaneEnds on the other side from the given end , e.g., the LaneEnds which end flows into. More... | |
std::optional< LaneEnd > | GetDefaultBranch (const LaneEnd &end) const |
Returns the default ongoing branch (if any) for the given end . More... | |
const LaneEndSet * | GetASide () const |
Returns the set of LaneEnds grouped together on the "A-side". More... | |
const LaneEndSet * | GetBSide () const |
Returns the set of LaneEnds grouped together on the "B-side". More... | |
Additional Inherited Members | |
![]() | |
BranchPoint ()=default | |
|
explicit |
Constructs a partially-initialized MockBranchPoint.
id | the ID |
See geometry_base::BranchPoint for discussion on initialization.
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN | ( | MockBranchPoint | ) |