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 1652 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 3349 of file MSLane.cpp.

Member Function Documentation

◆ operator()()

int MSLane::incoming_lane_priority_sorter::operator() ( const IncomingLaneInfo lane1,
const IncomingLaneInfo lane2 
) const

Field Documentation

◆ myLane

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

Definition at line 1661 of file MSLane.h.

◆ myLaneDir

double MSLane::incoming_lane_priority_sorter::myLaneDir
private

Definition at line 1662 of file MSLane.h.


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