DijkstraRouterTTBase< E, V, PF >::EdgeInfoByTTComparator Class Reference

#include <DijkstraRouterTT.h>


Detailed Description

template<class E, class V, class PF>
class DijkstraRouterTTBase< E, V, PF >::EdgeInfoByTTComparator

Definition at line 105 of file DijkstraRouterTT.h.


Public Member Functions

bool operator() (const EdgeInfo *nod1, const EdgeInfo *nod2) const
 Comparing method.

Member Function Documentation

template<class E, class V, class PF>
bool DijkstraRouterTTBase< E, V, PF >::EdgeInfoByTTComparator::operator() ( const EdgeInfo nod1,
const EdgeInfo nod2 
) const [inline]

Comparing method.

Definition at line 108 of file DijkstraRouterTT.h.

References DijkstraRouterTTBase< E, V, PF >::EdgeInfo::edge, and DijkstraRouterTTBase< E, V, PF >::EdgeInfo::traveltime.

00108                                                                           {
00109             if (nod1->traveltime == nod2->traveltime) {
00110                 return nod1->edge->getNumericalID() > nod2->edge->getNumericalID();
00111             }
00112             return nod1->traveltime>nod2->traveltime;
00113         }


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

Generated on Wed May 5 00:06:41 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6