![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Sorts lanes (IncomingLaneInfos) by their priority or, if this doesn't apply, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first) More...
Public Member Functions | |
incoming_lane_priority_sorter (const MSLane *targetLane) | |
constructor More... | |
int | operator() (const IncomingLaneInfo &lane1, const IncomingLaneInfo &lane2) const |
comparing operator More... | |
Private Member Functions | |
incoming_lane_priority_sorter & | operator= (const incoming_lane_priority_sorter &) |
Private Attributes | |
const MSLane *const | myLane |
double | myLaneDir |
Sorts lanes (IncomingLaneInfos) by their priority or, if this doesn't apply, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first)
|
explicit |
constructor
Definition at line 2907 of file MSLane.cpp.
int MSLane::incoming_lane_priority_sorter::operator() | ( | const IncomingLaneInfo & | lane1, |
const IncomingLaneInfo & | lane2 | ||
) | const |
comparing operator
Definition at line 2912 of file MSLane.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), MSLink::getFoeLinks(), Named::getID(), MSLane::getIncomingLanes(), MSLane::getLinkTo(), MSLane::getShape(), MSLane::isInternal(), MSLane::IncomingLaneInfo::lane, and MSLane::IncomingLaneInfo::viaLink.
|
private |
|
private |
|
private |