Drake
BranchPoint Class Reference

An implementation of api::BranchPoint. More...

#include <drake/automotive/maliput/monolane/branch_point.h>

Inheritance diagram for BranchPoint:
[legend]
Collaboration diagram for BranchPoint:
[legend]

Public Member Functions

 BranchPoint (const api::BranchPointId &id, api::RoadGeometry *road_geometry)
 Constructs an empty BranchPoint. More...
 
const api::LaneEndAddABranch (const api::LaneEnd &lane_end)
 Adds a LaneEnd to the "A side" of the BranchPoint. More...
 
const api::LaneEndAddBBranch (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
 
Does not allow copy, move, or assignment
 BranchPoint (const BranchPoint &)=delete
 
BranchPointoperator= (const BranchPoint &)=delete
 
 BranchPoint (BranchPoint &&)=delete
 
BranchPointoperator= (BranchPoint &&)=delete
 
- Public Member Functions inherited from BranchPoint
const 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::unique_ptr< 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...
 
 BranchPoint (const BranchPoint &)=delete
 
BranchPointoperator= (const BranchPoint &)=delete
 
 BranchPoint (BranchPoint &&)=delete
 
BranchPointoperator= (BranchPoint &&)=delete
 

Additional Inherited Members

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

Detailed Description

An implementation of api::BranchPoint.

Constructor & Destructor Documentation

BranchPoint ( const BranchPoint )
delete
BranchPoint ( BranchPoint &&  )
delete
BranchPoint ( const api::BranchPointId id,
api::RoadGeometry road_geometry 
)

Constructs an empty BranchPoint.

road_geometry must remain valid for the lifetime of this class.

~BranchPoint ( )
overridevirtualdefault

Reimplemented from BranchPoint.

Member Function Documentation

const api::LaneEnd & AddABranch ( const api::LaneEnd lane_end)

Adds a LaneEnd to the "A side" of the BranchPoint.

Here is the call graph for this function:

Here is the caller graph for this function:

const api::LaneEnd & AddBBranch ( const api::LaneEnd lane_end)

Adds a LaneEnd to the "B side" of the BranchPoint.

Here is the call graph for this function:

Here is the caller graph for this function:

BranchPoint& operator= ( BranchPoint &&  )
delete
BranchPoint& operator= ( const BranchPoint )
delete
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.


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