Eclipse SUMO - Simulation of Urban MObility
MSEdge::transportable_by_position_sorter Class Reference

Sorts transportables by their positions. More...

#include <MSEdge.h>

Public Member Functions

int operator() (const MSTransportable *const c1, const MSTransportable *const c2) const
 comparing operator More...
 
 transportable_by_position_sorter (SUMOTime timestep)
 constructor More...
 

Private Attributes

SUMOTime myTime
 

Detailed Description

Sorts transportables by their positions.

Definition at line 857 of file MSEdge.h.

Constructor & Destructor Documentation

◆ transportable_by_position_sorter()

MSEdge::transportable_by_position_sorter::transportable_by_position_sorter ( SUMOTime  timestep)
inlineexplicit

constructor

Definition at line 860 of file MSEdge.h.

Member Function Documentation

◆ operator()()

int MSEdge::transportable_by_position_sorter::operator() ( const MSTransportable *const  c1,
const MSTransportable *const  c2 
) const

comparing operator

Definition at line 1168 of file MSEdge.cpp.

References MSTransportable::getCurrentStage(), MSStage::getEdgePos(), Named::getID(), and myTime.

Field Documentation

◆ myTime

SUMOTime MSEdge::transportable_by_position_sorter::myTime
private

Definition at line 865 of file MSEdge.h.

Referenced by operator()().


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