SUMO - Simulation of Urban MObility
|
A structure storing information about which edges were joined. More...
#include <NBJoinedEdgesMap.h>
Public Member Functions | |
void | appended (const std::string &to, const std::string &what) |
Informs the map that two edges have been joined. | |
void | init (NBEdgeCont &ec) |
Initialises the map using the list of edge names. | |
NBJoinedEdgesMap () | |
Constructor. | |
~NBJoinedEdgesMap () | |
Destructor. | |
Private Types | |
typedef std::map< std::string, MappedEdgesVector > | JoinedEdgesMap |
def. of a map of edge names to lists of previous edges the current edge is made of | |
typedef std::vector< std::string > | MappedEdgesVector |
def. of a list of edges that make up an edge | |
Private Attributes | |
std::map< std::string, SUMOReal > | myLengths |
JoinedEdgesMap | myMap |
Map of edge names to lists of previous edges the current edge is made of. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const NBJoinedEdgesMap &map) |
Outputs the list of joined edges. |
A structure storing information about which edges were joined.
Definition at line 53 of file NBJoinedEdgesMap.h.
typedef std::map<std::string, MappedEdgesVector> NBJoinedEdgesMap::JoinedEdgesMap [private] |
def. of a map of edge names to lists of previous edges the current edge is made of
Definition at line 79 of file NBJoinedEdgesMap.h.
typedef std::vector<std::string> NBJoinedEdgesMap::MappedEdgesVector [private] |
def. of a list of edges that make up an edge
Definition at line 76 of file NBJoinedEdgesMap.h.
Constructor.
Definition at line 47 of file NBJoinedEdgesMap.cpp.
Destructor.
Definition at line 50 of file NBJoinedEdgesMap.cpp.
void NBJoinedEdgesMap::appended | ( | const std::string & | to, |
const std::string & | what | ||
) |
Informs the map that two edges have been joined.
Definition at line 67 of file NBJoinedEdgesMap.cpp.
References myMap.
Referenced by NBNodeCont::removeUnwishedNodes().
void NBJoinedEdgesMap::init | ( | NBEdgeCont & | ec | ) |
Initialises the map using the list of edge names.
Definition at line 54 of file NBJoinedEdgesMap.cpp.
References NBEdgeCont::getAllNames(), NBEdge::getLength(), myLengths, myMap, and NBEdgeCont::retrieve().
Referenced by NBNetBuilder::compute().
std::ostream& operator<< | ( | std::ostream & | os, |
const NBJoinedEdgesMap & | map | ||
) | [friend] |
Outputs the list of joined edges.
Definition at line 76 of file NBJoinedEdgesMap.cpp.
std::map<std::string, SUMOReal> NBJoinedEdgesMap::myLengths [private] |
Definition at line 84 of file NBJoinedEdgesMap.h.
Referenced by init(), and operator<<().
JoinedEdgesMap NBJoinedEdgesMap::myMap [private] |
Map of edge names to lists of previous edges the current edge is made of.
Definition at line 82 of file NBJoinedEdgesMap.h.
Referenced by appended(), init(), and operator<<().