Drake
Junction Class Referenceabstract

A Junction is a closed set of Segments which have physically coplanar road surfaces, in the sense that RoadPositions with the same h value (height above surface) in the domains of two Segments map to the same GeoPosition. More...

#include <automotive/maliput/api/junction.h>

Inheritance diagram for Junction:
[legend]

## Public Member Functions

virtual ~Junction ()=default

const JunctionId id () const
Returns the persistent identifier. More...

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...

Does not allow copy, move, or assignment
Junction (const Junction &)=delete

Junctionoperator= (const Junction &)=delete

Junction (Junction &&)=delete

Junctionoperator= (Junction &&)=delete

## Protected Member Functions

Junction ()=default

## Detailed Description

A Junction is a closed set of Segments which have physically coplanar road surfaces, in the sense that RoadPositions with the same h value (height above surface) in the domains of two Segments map to the same GeoPosition.

The Segments need not be directly connected to one another in the network topology.

## Constructor & Destructor Documentation

 Junction ( const Junction & )
delete
 Junction ( Junction && )
delete
 virtual ~Junction ( )
virtualdefault

Reimplemented in Junction, Junction, Junction, and Junction.

 Junction ( )
protecteddefault

Here is the caller graph for this function:

## Member Function Documentation

 const JunctionId id ( ) const
inline

Returns the persistent identifier.

Here is the caller graph for this function:

 int num_segments ( ) const
inline

Returns the number of Segments in the Junction.

Return value is non-negative.

Here is the caller graph for this function:

 Junction& operator= ( Junction && )
delete
 Junction& operator= ( const Junction & )
delete
inline

Returns the RoadGeometry to which this Junction belongs.

Here is the caller graph for this function:

 const Segment* segment ( int index ) const
inline

Returns the Segment indexed by index.

Precondition
index must be >= 0 and < num_segments().

Here is the call graph for this function:

Here is the caller graph for this function:

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