Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AFCentralizedSPTree< E, N, V >::EdgeInfoComparator Class Reference

#include <AFCentralizedSPTree.h>

Public Member Functions

 EdgeInfoComparator (std::vector< ArcInfo * > &arcInfos)
 Constructor.
bool operator() (const typename SUMOAbstractRouter< E, V >::EdgeInfo *edgeInfo1, const typename SUMOAbstractRouter< E, V >::EdgeInfo *edgeInfo2) const
 Comparing method.

Private Attributes

std::vector< ArcInfo * > & myArcInfos

Detailed Description

template<class E, class N, class V>
class AFCentralizedSPTree< E, N, V >::EdgeInfoComparator

Definition at line 59 of file AFCentralizedSPTree.h.

Constructor & Destructor Documentation

◆ EdgeInfoComparator()

template<class E, class N, class V>
AFCentralizedSPTree< E, N, V >::EdgeInfoComparator::EdgeInfoComparator ( std::vector< ArcInfo * > & arcInfos)
inline

Constructor.

Parameters
[in]arcInfosThe arc informations

Definition at line 64 of file AFCentralizedSPTree.h.

References myArcInfos.

Member Function Documentation

◆ operator()()

template<class E, class N, class V>
bool AFCentralizedSPTree< E, N, V >::EdgeInfoComparator::operator() ( const typename SUMOAbstractRouter< E, V >::EdgeInfo * edgeInfo1,
const typename SUMOAbstractRouter< E, V >::EdgeInfo * edgeInfo2 ) const
inline

Comparing method.

Parameters
[in]edgeInfo1The first edge information
[in]edgeInfo2The second edge information
Returns
true iff arc info key of the first edge is greater than that of the second
Note
In case of ties: returns true iff the numerical id of the first edge is greater that that of the second

Definition at line 73 of file AFCentralizedSPTree.h.

References SUMOAbstractRouter< E, V >::EdgeInfo::edge, AFInfo< E >::ArcInfoBase::key, and myArcInfos.

Field Documentation

◆ myArcInfos

template<class E, class N, class V>
std::vector<ArcInfo*>& AFCentralizedSPTree< E, N, V >::EdgeInfoComparator::myArcInfos
private

Definition at line 88 of file AFCentralizedSPTree.h.

Referenced by EdgeInfoComparator(), and operator()().


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