Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
ODMatrix::cell_by_begin_comparator Class Reference

Used for sorting the cells by the begin time they describe. More...

Public Member Functions

 cell_by_begin_comparator ()
 constructor
 
int operator() (ODCell *p1, ODCell *p2) const
 Comparing operator.
 

Detailed Description

Used for sorting the cells by the begin time they describe.

Definition at line 389 of file ODMatrix.h.

Constructor & Destructor Documentation

◆ cell_by_begin_comparator()

ODMatrix::cell_by_begin_comparator::cell_by_begin_comparator ( )
inlineexplicit

constructor

Definition at line 392 of file ODMatrix.h.

Member Function Documentation

◆ operator()()

int ODMatrix::cell_by_begin_comparator::operator() ( ODCell p1,
ODCell p2 
) const
inline

Comparing operator.

Compares two cells by the begin of the time they describe. The sort is stabilized (with secondary sort keys being origin and destination) to get comparable results with different platforms / compilers.

Parameters
[in]p1First cell to compare
[in]p2Second cell to compare
Returns
Whether the begin time of the first cell is lower than the one of the second

Definition at line 405 of file ODMatrix.h.

References ODCell::begin, ODCell::destination, and ODCell::origin.


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