maliput
MockBranchPoint Class Reference

Detailed Description

Mock api::BranchPoint implementation; see mock_geometry.h.

#include <include/maliput/test_utilities/mock_geometry.h>

Inheritance diagram for MockBranchPoint:
[legend]

Public Member Functions

 MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (MockBranchPoint)
 
 MockBranchPoint (const api::BranchPointId &id)
 Constructs a partially-initialized MockBranchPoint. More...
 
- Public Member Functions inherited from BranchPoint
 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)
 
- Public Member Functions inherited from BranchPoint
BranchPointId id () const
 Returns the persistent identifier. More...
 
const RoadGeometryroad_geometry () const
 Returns the RoadGeometry to which this BranchPoint belongs. More...
 
const LaneEndSetGetConfluentBranches (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 LaneEndSetGetOngoingBranches (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< LaneEndGetDefaultBranch (const LaneEnd &end) const
 Returns the default ongoing branch (if any) for the given end. More...
 
const LaneEndSetGetASide () const
 Returns the set of LaneEnds grouped together on the "A-side". More...
 
const LaneEndSetGetBSide () const
 Returns the set of LaneEnds grouped together on the "B-side". More...
 

Additional Inherited Members

- Protected Member Functions inherited from BranchPoint
 BranchPoint ()=default
 

Constructor & Destructor Documentation

◆ MockBranchPoint()

MockBranchPoint ( const api::BranchPointId id)
explicit

Constructs a partially-initialized MockBranchPoint.

Parameters
idthe ID

See geometry_base::BranchPoint for discussion on initialization.

Member Function Documentation

◆ MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN()

MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN ( MockBranchPoint  )

The documentation for this class was generated from the following file: