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:

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 1503 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 2888 of file MSLane.cpp.

Member Function Documentation

◆ operator()()

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

◆ 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 1514 of file MSLane.h.

◆ myLaneDir

double MSLane::incoming_lane_priority_sorter::myLaneDir
private

Definition at line 1515 of file MSLane.h.


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