|
SUMO - Simulation of Urban MObility
|
A function for sorting vehicles by their departure time. More...
#include <ROHelper.h>


Public Member Functions | |
| bool | operator() (ROVehicle *veh1, ROVehicle *veh2) const |
| Comparing operator. More... | |
| ROVehicleByDepartureComperator () | |
| Constructor. More... | |
| ~ROVehicleByDepartureComperator () | |
| Destructor. More... | |
A function for sorting vehicles by their departure time.
In the case two vehicles have the same departure time, they are sorted lexically.
Definition at line 50 of file ROHelper.h.
|
inlineexplicit |
Constructor.
Definition at line 53 of file ROHelper.h.
|
inline |
Destructor.
Definition at line 56 of file ROHelper.h.
Comparing operator.
Returns whether the first vehicles wants to leave later than the second. If both vehicles have the same departure time, a lexical comparison is done.
Definition at line 69 of file ROHelper.h.
References ROVehicle::getDepart(), and ROVehicle::getID().