ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::if_xodr::BorderIDTranslation Class Reference

BorderIDTranslation is a set of translation tables, which keeps track of road ids, junction ids and their geometric representation as borders. More...

#include <idtranslation.h>

Collaboration diagram for adore::if_xodr::BorderIDTranslation:
Collaboration graph

Public Types

typedef std::string TID
 
typedef adore::env::BorderBased::BorderID BorderID
 
typedef adore::env::BorderBased::BorderIDHasher BorderIDHasher
 
typedef std::unordered_map< BorderID, TID, BorderIDHasherBorderID2TID
 
typedef std::unordered_multimap< TID, BorderIDTID2MultiBorderID
 
typedef std::unordered_map< TID, TIDTIDmap
 
typedef std::unordered_multimap< TID, TIDTIDmultimap
 
typedef TID2MultiBorderID::iterator Iterator
 
typedef std::pair< Iterator, IteratorIteratorPair
 
typedef std::vector< BorderIDBorderIDVector
 

Public Member Functions

void insert (const BorderID &borderID, TID roadID)
 
void insert (TID junctionID, TID roadID)
 
IteratorPair getBorderIDsOfRoad (TID roadID)
 
BorderIDVector getBorderIDsOfJunction (TID junctionID)
 
TID getRoadID (const BorderID &borderID)
 
TID getJunctionID (const BorderID &borderID)
 
bool isInJunction (TID roadID)
 
bool isInJunction (const BorderID &borderID)
 

Private Attributes

BorderID2TID borderID2roadID_
 
TID2MultiBorderID roadID2borderID_
 
TIDmap roadID2junctionID_
 
TIDmultimap junctionID2roadID_
 
TID default_empty_id_
 

Detailed Description

BorderIDTranslation is a set of translation tables, which keeps track of road ids, junction ids and their geometric representation as borders.

Member Typedef Documentation

◆ BorderID

◆ BorderID2TID

◆ BorderIDHasher

◆ BorderIDVector

◆ Iterator

typedef TID2MultiBorderID::iterator adore::if_xodr::BorderIDTranslation::Iterator

◆ IteratorPair

◆ TID

◆ TID2MultiBorderID

◆ TIDmap

◆ TIDmultimap

typedef std::unordered_multimap<TID,TID> adore::if_xodr::BorderIDTranslation::TIDmultimap

Member Function Documentation

◆ getBorderIDsOfJunction()

BorderIDVector adore::if_xodr::BorderIDTranslation::getBorderIDsOfJunction ( TID  junctionID)
inline

get all BorderIDs associated with a roadID

◆ getBorderIDsOfRoad()

IteratorPair adore::if_xodr::BorderIDTranslation::getBorderIDsOfRoad ( TID  roadID)
inline

get all BorderIDs associated with a roadID

◆ getJunctionID()

TID adore::if_xodr::BorderIDTranslation::getJunctionID ( const BorderID borderID)
inline

get the associated junctionID of a BorderID

Here is the caller graph for this function:

◆ getRoadID()

TID adore::if_xodr::BorderIDTranslation::getRoadID ( const BorderID borderID)
inline

get the associated roadID of a BorderID

◆ insert() [1/2]

void adore::if_xodr::BorderIDTranslation::insert ( const BorderID borderID,
TID  roadID 
)
inline

insert entry into tables: link borderID and roadID

Here is the caller graph for this function:

◆ insert() [2/2]

void adore::if_xodr::BorderIDTranslation::insert ( TID  junctionID,
TID  roadID 
)
inline

insert entry into tables: link junctionID and roadID

◆ isInJunction() [1/2]

bool adore::if_xodr::BorderIDTranslation::isInJunction ( const BorderID borderID)
inline

check whether a borderID belongs to a connecting road inside a junction

◆ isInJunction() [2/2]

bool adore::if_xodr::BorderIDTranslation::isInJunction ( TID  roadID)
inline

check whether a road is a connecting road inside a junction

Here is the caller graph for this function:

Member Data Documentation

◆ borderID2roadID_

BorderID2TID adore::if_xodr::BorderIDTranslation::borderID2roadID_
private

◆ default_empty_id_

TID adore::if_xodr::BorderIDTranslation::default_empty_id_
private

◆ junctionID2roadID_

TIDmultimap adore::if_xodr::BorderIDTranslation::junctionID2roadID_
private

◆ roadID2borderID_

TID2MultiBorderID adore::if_xodr::BorderIDTranslation::roadID2borderID_
private

◆ roadID2junctionID_

TIDmap adore::if_xodr::BorderIDTranslation::roadID2junctionID_
private

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