SUMO - Simulation of Urban MObility

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
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 265 of file ODMatrix.h.


Constructor & Destructor Documentation

ODMatrix::cell_by_begin_sorter::cell_by_begin_sorter ( ) [inline, explicit]

constructor

Definition at line 268 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 281 of file ODMatrix.h.

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


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines