Drake
RoadGeometry::IdIndex Class Referenceabstract

Abstract interface for a collection of methods which allow accessing objects in a RoadGeometry's object graph (Lanes, Segments, Junctions, BranchPoints) by their unique id's. More...

#include <drake/automotive/maliput/api/road_geometry.h>

Public Member Functions

virtual ~IdIndex ()=default
 
const LaneGetLane (const LaneId &id) const
 Returns the Lane identified by id, or nullptr if id is unknown. More...
 
const SegmentGetSegment (const SegmentId &id) const
 Returns the Segment identified by id, or nullptr if id is unknown. More...
 
const JunctionGetJunction (const JunctionId &id) const
 Returns the Junction identified by id, or nullptr if id is unknown. More...
 
const BranchPointGetBranchPoint (const BranchPointId &id) const
 Returns the BranchPoint identified by id, or nullptr if id is unknown. More...
 
Does not allow copy, move, or assignment
 IdIndex (const IdIndex &)=delete
 
IdIndexoperator= (const IdIndex &)=delete
 
 IdIndex (IdIndex &&)=delete
 
IdIndexoperator= (IdIndex &&)=delete
 

Protected Member Functions

 IdIndex ()=default
 

Detailed Description

Abstract interface for a collection of methods which allow accessing objects in a RoadGeometry's object graph (Lanes, Segments, Junctions, BranchPoints) by their unique id's.

Constructor & Destructor Documentation

◆ IdIndex() [1/3]

IdIndex ( const IdIndex )
delete

◆ IdIndex() [2/3]

IdIndex ( IdIndex &&  )
delete

◆ ~IdIndex()

virtual ~IdIndex ( )
virtualdefault

◆ IdIndex() [3/3]

IdIndex ( )
protecteddefault

Member Function Documentation

◆ GetBranchPoint()

const BranchPoint* GetBranchPoint ( const BranchPointId id) const

Returns the BranchPoint identified by id, or nullptr if id is unknown.

◆ GetJunction()

const Junction* GetJunction ( const JunctionId id) const

Returns the Junction identified by id, or nullptr if id is unknown.

◆ GetLane()

const Lane* GetLane ( const LaneId id) const

Returns the Lane identified by id, or nullptr if id is unknown.

◆ GetSegment()

const Segment* GetSegment ( const SegmentId id) const

Returns the Segment identified by id, or nullptr if id is unknown.

◆ operator=() [1/2]

IdIndex& operator= ( const IdIndex )
delete

◆ operator=() [2/2]

IdIndex& operator= ( IdIndex &&  )
delete

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