Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSLane::incoming_lane_priority_sorter Class Reference

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...

Collaboration diagram for MSLane::incoming_lane_priority_sorter:
[legend]

Public Member Functions

 incoming_lane_priority_sorter (const MSLane *targetLane)
 constructor
int operator() (const IncomingLaneInfo &lane1, const IncomingLaneInfo &lane2) const
 comparing operator

Private Attributes

const MSLane *const myLane
double myLaneDir

Detailed Description

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).

Definition at line 1713 of file MSLane.h.

Constructor & Destructor Documentation

◆ incoming_lane_priority_sorter()

MSLane::incoming_lane_priority_sorter::incoming_lane_priority_sorter ( const MSLane * targetLane)
explicit

constructor

Definition at line 3566 of file MSLane.cpp.

References MSLane::getShape(), MSLane::MSLane(), myLane, and myLaneDir.

Member Function Documentation

◆ operator()()

Field Documentation

◆ myLane

const MSLane* const MSLane::incoming_lane_priority_sorter::myLane
private

Definition at line 1722 of file MSLane.h.

Referenced by incoming_lane_priority_sorter(), and operator()().

◆ myLaneDir

double MSLane::incoming_lane_priority_sorter::myLaneDir
private

Definition at line 1723 of file MSLane.h.

Referenced by incoming_lane_priority_sorter(), and operator()().


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