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:
Collaboration graph

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_sorteroperator= (const incoming_lane_priority_sorter &)
 

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 1425 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 2753 of file MSLane.cpp.

Member Function Documentation

◆ operator()()

◆ operator=()

incoming_lane_priority_sorter& MSLane::incoming_lane_priority_sorter::operator= ( const incoming_lane_priority_sorter )
private

Field Documentation

◆ myLane

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

Definition at line 1436 of file MSLane.h.

Referenced by operator()().

◆ myLaneDir

double MSLane::incoming_lane_priority_sorter::myLaneDir
private

Definition at line 1437 of file MSLane.h.

Referenced by operator()().


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