#include <MSLinkCont.h>
Definition at line 57 of file MSLinkCont.h.
Static Public Member Functions | |
| static MSLink * | getConnectingLink (const MSLane &from, const MSLane &to) |
| Returns the link connecting both lanes Both lanes have to be non-internal; 0 may be returned if no connection exists. | |
Returns the link connecting both lanes Both lanes have to be non-internal; 0 may be returned if no connection exists.
Definition at line 59 of file MSLinkCont.cpp.
References MSLink::getLane(), and MSLane::getLinkCont().
Referenced by NLDetectorBuilder::buildE2Detector().
00059 { 00060 const MSLinkCont &lc = from.getLinkCont(); 00061 for (MSLinkCont::const_iterator j=lc.begin(); j!=lc.end(); j++) { 00062 MSLink *link = *j; 00063 if (link->getLane()==&to) { 00064 return link; 00065 } 00066 } 00067 return 0; 00068 }
1.5.6