#include <NIVissimNodeDef.h>

Definition at line 40 of file NIVissimNodeDef.h.
Public Member Functions | |
| int | buildNodeCluster () |
| virtual SUMOReal | getEdgePosition (int edgeid) const =0 |
| NIVissimNodeDef (int id, const std::string &name) | |
| virtual void | searchAndSetConnections ()=0 |
| virtual | ~NIVissimNodeDef () |
Static Public Member Functions | |
| static void | clearDict () |
| static void | dict_assignConnectionsToNodes () |
| static NIVissimNodeDef * | dictionary (int id) |
| static bool | dictionary (int id, NIVissimNodeDef *o) |
| static size_t | dictSize () |
| static int | getMaxID () |
Protected Attributes | |
| int | myID |
| std::string | myName |
Private Types | |
| typedef std::map< int, NIVissimNodeDef * > | DictType |
Static Private Attributes | |
| static DictType | myDict |
| static int | myMaxID = 0 |
typedef std::map<int, NIVissimNodeDef*> NIVissimNodeDef::DictType [private] |
Definition at line 64 of file NIVissimNodeDef.h.
| NIVissimNodeDef::NIVissimNodeDef | ( | int | id, | |
| const std::string & | name | |||
| ) |
| NIVissimNodeDef::~NIVissimNodeDef | ( | ) | [virtual] |
| int NIVissimNodeDef::buildNodeCluster | ( | ) |
| void NIVissimNodeDef::clearDict | ( | ) | [static] |
Definition at line 131 of file NIVissimNodeDef.cpp.
References myDict.
Referenced by NIImporter_Vissim::~NIImporter_Vissim().
00131 { 00132 for (DictType::iterator i=myDict.begin(); i!=myDict.end(); i++) { 00133 delete(*i).second; 00134 } 00135 myDict.clear(); 00136 }
| void NIVissimNodeDef::dict_assignConnectionsToNodes | ( | ) | [static] |
Definition at line 116 of file NIVissimNodeDef.cpp.
References myDict.
00116 { 00117 for (DictType::iterator i=myDict.begin(); i!=myDict.end(); i++) { 00118 (*i).second->searchAndSetConnections(); 00119 } 00120 }
| NIVissimNodeDef * NIVissimNodeDef::dictionary | ( | int | id | ) | [static] |
Definition at line 73 of file NIVissimNodeDef.cpp.
References myDict.
00073 { 00074 DictType::iterator i=myDict.find(id); 00075 if (i==myDict.end()) { 00076 return 0; 00077 } 00078 return (*i).second; 00079 }
| bool NIVissimNodeDef::dictionary | ( | int | id, | |
| NIVissimNodeDef * | o | |||
| ) | [static] |
Definition at line 58 of file NIVissimNodeDef.cpp.
References myDict, and myMaxID.
Referenced by NIVissimNodeDef_Poly::dictionary(), NIVissimNodeDef_Edges::dictionary(), and NIVissimConnectionCluster::getPositionForEdge().
00058 { 00059 DictType::iterator i=myDict.find(id); 00060 if (i==myDict.end()) { 00061 myDict[id] = o; 00062 myMaxID = myMaxID > id 00063 ? myMaxID 00064 : id; 00065 // o->computeBounding(); 00066 return true; 00067 } 00068 return false; 00069 }
| size_t NIVissimNodeDef::dictSize | ( | ) | [static] |
Definition at line 124 of file NIVissimNodeDef.cpp.
References myDict.
00124 { 00125 return myDict.size(); 00126 }
| virtual SUMOReal NIVissimNodeDef::getEdgePosition | ( | int | edgeid | ) | const [pure virtual] |
Implemented in NIVissimNodeDef_Edges.
Referenced by NIVissimConnectionCluster::getPositionForEdge().
| int NIVissimNodeDef::getMaxID | ( | ) | [static] |
Definition at line 140 of file NIVissimNodeDef.cpp.
References myMaxID.
Referenced by NIImporter_Vissim::postLoadBuild().
00140 { 00141 return myMaxID; 00142 }
| virtual void NIVissimNodeDef::searchAndSetConnections | ( | ) | [pure virtual] |
Implemented in NIVissimNodeDef_Edges.
NIVissimNodeDef::DictType NIVissimNodeDef::myDict [static, private] |
Definition at line 65 of file NIVissimNodeDef.h.
Referenced by clearDict(), dict_assignConnectionsToNodes(), dictionary(), and dictSize().
int NIVissimNodeDef::myID [protected] |
Definition at line 60 of file NIVissimNodeDef.h.
Referenced by NIVissimNodeDef_Poly::searchAndSetConnections(), and NIVissimNodeDef_Edges::searchAndSetConnections().
int NIVissimNodeDef::myMaxID = 0 [static, private] |
std::string NIVissimNodeDef::myName [protected] |
Definition at line 61 of file NIVissimNodeDef.h.
1.5.6