|
SUMO - Simulation of Urban MObility
|
Used for sorting vehicles by their departure (latest first) More...
#include <ODMatrix.h>
Public Member Functions | |
| descending_departure_comperator () | |
| constructor | |
| bool | operator() (const ODVehicle &p1, const ODVehicle &p2) const |
| Comparing operator. | |
Used for sorting vehicles by their departure (latest first)
A reverse operator to what may be expected is used in order to allow prunning the sorted vector from its tail.
Definition at line 301 of file ODMatrix.h.
| ODMatrix::descending_departure_comperator::descending_departure_comperator | ( | ) | [inline] |
constructor
Definition at line 304 of file ODMatrix.h.
| bool ODMatrix::descending_departure_comperator::operator() | ( | const ODVehicle & | p1, |
| const ODVehicle & | p2 | ||
| ) | const [inline] |
Comparing operator.
Compares two vehicles by their departure time
| [in] | p1 | First vehicle to compare |
| [in] | p2 | Second vehicle to compare |
Definition at line 315 of file ODMatrix.h.
References ODMatrix::ODVehicle::depart, and ODMatrix::ODVehicle::id.