Junction Class Reference

An api::Junction implementation. More...

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

Inheritance diagram for Junction:
Collaboration diagram for Junction:

Public Member Functions

 Junction (const api::JunctionId &id, api::RoadGeometry *road_geometry)
 Constructs an empty Junction. More...
SegmentNewSegment (api::SegmentId id)
 Creates and adds a new Segment with the specified id. More...
 ~Junction () override=default
Does not allow copy, move, or assignment
 Junction (const Junction &)=delete
Junctionoperator= (const Junction &)=delete
 Junction (Junction &&)=delete
Junctionoperator= (Junction &&)=delete
- Public Member Functions inherited from Junction
const JunctionId id () const
 Returns the persistent identifier. More...
const RoadGeometryroad_geometry () const
 Returns the RoadGeometry to which this Junction belongs. More...
int num_segments () const
 Returns the number of Segments in the Junction. More...
const Segmentsegment (int index) const
 Returns the Segment indexed by index. More...
 Junction (const Junction &)=delete
Junctionoperator= (const Junction &)=delete
 Junction (Junction &&)=delete
Junctionoperator= (Junction &&)=delete

Additional Inherited Members

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

Detailed Description

An api::Junction implementation.

Constructor & Destructor Documentation

Junction ( const Junction )
Junction ( Junction &&  )
Junction ( const api::JunctionId id,
api::RoadGeometry road_geometry 

Constructs an empty Junction.

road_geometry must remain valid for the lifetime of this class, and must refer to the RoadGeometry which will contain the newly constructed Junction instance.

~Junction ( )

Reimplemented from Junction.

Member Function Documentation

Segment * NewSegment ( api::SegmentId  id)

Creates and adds a new Segment with the specified id.

Here is the caller graph for this function:

Junction& operator= ( const Junction )
Junction& operator= ( Junction &&  )

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