SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ODMatrix::cell_by_begin_sorter Class Reference

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

#include <ODMatrix.h>

Public Member Functions

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

Detailed Description

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

Definition at line 334 of file ODMatrix.h.

Constructor & Destructor Documentation

ODMatrix::cell_by_begin_sorter::cell_by_begin_sorter ( )
inlineexplicit

constructor

Definition at line 337 of file ODMatrix.h.

Member Function Documentation

int ODMatrix::cell_by_begin_sorter::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 350 of file ODMatrix.h.

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


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