Eclipse SUMO - Simulation of Urban MObility
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 More...
 
int operator() (const IncomingLaneInfo &lane1, const IncomingLaneInfo &lane2) const
 comparing operator More...
 

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 1586 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 3206 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 1595 of file MSLane.h.

◆ myLaneDir

double MSLane::incoming_lane_priority_sorter::myLaneDir
private

Definition at line 1596 of file MSLane.h.


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