SUMO - Simulation of Urban MObility

NIImporter_OpenStreetMap::SimilarEdge Class Reference

Functor which compares two Edges according to all values but id. More...

Inheritance diagram for NIImporter_OpenStreetMap::SimilarEdge:
unary_function

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

Detailed Description

Functor which compares two Edges according to all values but id.

Definition at line 119 of file NIImporter_OpenStreetMap.cpp.


Constructor & Destructor Documentation

NIImporter_OpenStreetMap::SimilarEdge::SimilarEdge ( const std::pair< std::string, Edge * > &  p0) [inline]

Initializes the functor with the fixed comparison partner.

Parameters:
[in]p0A pair with the Edge all other nodes should be compared with.

Definition at line 126 of file NIImporter_OpenStreetMap.cpp.


Member Function Documentation

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

Parameters:
[in]p1A pair with the edge to compare.
Returns:
true if both edges are "similar"; otherwise false.

Definition at line 137 of file NIImporter_OpenStreetMap.cpp.

References myP0.


Field Documentation

std::pair<std::string, Edge*> NIImporter_OpenStreetMap::SimilarEdge::myP0 [private]

Definition at line 148 of file NIImporter_OpenStreetMap.cpp.

Referenced by operator()().


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