#include <ODMatrix.h>
Definition at line 263 of file ODMatrix.h.
Public Member Functions | |
| cell_by_begin_sorter () | |
| constructor | |
| int | operator() (ODCell *p1, ODCell *p2) const |
| Comparing operator. | |
| ODMatrix::cell_by_begin_sorter::cell_by_begin_sorter | ( | ) | [inline, explicit] |
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.
| [in] | p1 | First cell to compare |
| [in] | p2 | Second cell to compare |
Definition at line 279 of file ODMatrix.h.
References ODCell::begin, ODCell::destination, and ODCell::origin.
00279 { 00280 if (p1->begin == p2->begin) { 00281 if (p1->origin == p2->origin) { 00282 return p1->destination < p2->destination; 00283 } 00284 return p1->origin < p2->origin; 00285 } 00286 return p1->begin<p2->begin; 00287 }
1.5.6