maliput
RoadGeometry::IdIndex Class Referenceabstract

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.

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

Inheritance diagram for RoadGeometry::IdIndex:
[legend]

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 std::unordered_map< LaneId, const Lane * > & GetLanes () const
 
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...
 

Protected Member Functions

 IdIndex ()=default
 

Constructor & Destructor Documentation

◆ ~IdIndex()

virtual ~IdIndex ( )
virtualdefault

◆ IdIndex()

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.

◆ GetLanes()

const std::unordered_map< LaneId, const Lane * > & GetLanes ( ) const

◆ GetSegment()

const Segment * GetSegment ( const SegmentId id) const

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


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