maliput
|
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>
Public Member Functions | |
virtual | ~IdIndex ()=default |
const Lane * | GetLane (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 Segment * | GetSegment (const SegmentId &id) const |
Returns the Segment identified by id , or nullptr if id is unknown. More... | |
const Junction * | GetJunction (const JunctionId &id) const |
Returns the Junction identified by id , or nullptr if id is unknown. More... | |
const BranchPoint * | GetBranchPoint (const BranchPointId &id) const |
Returns the BranchPoint identified by id , or nullptr if id is unknown. More... | |
Protected Member Functions | |
IdIndex ()=default | |
|
virtualdefault |
|
protecteddefault |
const BranchPoint * GetBranchPoint | ( | const BranchPointId & | id | ) | const |
Returns the BranchPoint identified by id
, or nullptr
if id
is unknown.
const Junction * GetJunction | ( | const JunctionId & | id | ) | const |
Returns the Junction identified by id
, or nullptr
if id
is unknown.
Returns the Lane identified by id
, or nullptr
if id
is unknown.
Returns the Segment identified by id
, or nullptr
if id
is unknown.