|
SUMO - Simulation of Urban MObility
|
Functor which compares two Edges according to all values but id. More...
Public Member Functions | |
| bool | operator() (const std::pair< std::string, Edge * > &p1) const |
| Compares the Edge (p1.second) with the node given in the constructor for equality. | |
| SimilarEdge (const std::pair< std::string, Edge * > &p0) | |
| Initializes the functor with the fixed comparison partner. | |
Private Attributes | |
| std::pair< std::string, Edge * > | myP0 |
Functor which compares two Edges according to all values but id.
Definition at line 119 of file NIImporter_OpenStreetMap.cpp.
| NIImporter_OpenStreetMap::SimilarEdge::SimilarEdge | ( | const std::pair< std::string, Edge * > & | p0 | ) | [inline] |
Initializes the functor with the fixed comparison partner.
| [in] | p0 | A pair with the Edge all other nodes should be compared with. |
Definition at line 126 of file NIImporter_OpenStreetMap.cpp.
| bool NIImporter_OpenStreetMap::SimilarEdge::operator() | ( | const std::pair< std::string, Edge * > & | p1 | ) | const [inline] |
Compares the Edge (p1.second) with the node given in the constructor for equality.
All values but the ids are compared
| [in] | p1 | A pair with the edge to compare. |
Definition at line 137 of file NIImporter_OpenStreetMap.cpp.
References myP0.
std::pair<std::string, Edge*> NIImporter_OpenStreetMap::SimilarEdge::myP0 [private] |
Definition at line 148 of file NIImporter_OpenStreetMap.cpp.
Referenced by operator()().