#include <NIVissimSource.h>
Definition at line 42 of file NIVissimSource.h.
Public Member Functions | |
| NIVissimSource (const std::string &id, const std::string &name, const std::string &edgeid, SUMOReal q, bool exact, int vehicle_combination, SUMOReal beg, SUMOReal end) | |
| ~NIVissimSource () | |
Static Public Member Functions | |
| static void | clearDict () |
| static NIVissimSource * | dictionary (const std::string &id) |
| static bool | dictionary (const std::string &id, NIVissimSource *o) |
| static bool | dictionary (const std::string &id, const std::string &name, const std::string &edgeid, SUMOReal q, bool exact, int vehicle_combination, SUMOReal beg, SUMOReal end) |
Private Types | |
| typedef std::map< std::string, NIVissimSource * > | DictType |
Private Attributes | |
| std::string | myEdgeID |
| bool | myExact |
| std::string | myID |
| std::string | myName |
| SUMOReal | myQ |
| SUMOReal | myTimeBeg |
| SUMOReal | myTimeEnd |
| int | myVehicleCombination |
Static Private Attributes | |
| static DictType | myDict |
typedef std::map<std::string, NIVissimSource*> NIVissimSource::DictType [private] |
Definition at line 65 of file NIVissimSource.h.
| NIVissimSource::NIVissimSource | ( | const std::string & | id, | |
| const std::string & | name, | |||
| const std::string & | edgeid, | |||
| SUMOReal | q, | |||
| bool | exact, | |||
| int | vehicle_combination, | |||
| SUMOReal | beg, | |||
| SUMOReal | end | |||
| ) |
Definition at line 41 of file NIVissimSource.cpp.
Referenced by dictionary().
00045 : myID(id), myName(name), myEdgeID(edgeid), myQ(q), myExact(exact), 00046 myVehicleCombination(vehicle_combination), 00047 myTimeBeg(beg), myTimeEnd(end) {}
| NIVissimSource::~NIVissimSource | ( | ) |
| void NIVissimSource::clearDict | ( | ) | [static] |
Definition at line 89 of file NIVissimSource.cpp.
References myDict.
Referenced by NIImporter_Vissim::~NIImporter_Vissim().
00089 { 00090 for (DictType::iterator i=myDict.begin(); i!=myDict.end(); i++) { 00091 delete(*i).second; 00092 } 00093 myDict.clear(); 00094 }
| NIVissimSource * NIVissimSource::dictionary | ( | const std::string & | id | ) | [static] |
Definition at line 79 of file NIVissimSource.cpp.
References myDict.
00079 { 00080 DictType::iterator i=myDict.find(id); 00081 if (i==myDict.end()) { 00082 return 0; 00083 } 00084 return (*i).second; 00085 }
| bool NIVissimSource::dictionary | ( | const std::string & | id, | |
| NIVissimSource * | o | |||
| ) | [static] |
| bool NIVissimSource::dictionary | ( | const std::string & | id, | |
| const std::string & | name, | |||
| const std::string & | edgeid, | |||
| SUMOReal | q, | |||
| bool | exact, | |||
| int | vehicle_combination, | |||
| SUMOReal | beg, | |||
| SUMOReal | end | |||
| ) | [static] |
Definition at line 54 of file NIVissimSource.cpp.
References NIVissimSource().
Referenced by NIVissimSingleTypeParser_Zuflussdefinition::parse().
00056 { 00057 NIVissimSource *o = new NIVissimSource(id, name, edgeid, q, exact, 00058 vehicle_combination, beg, end); 00059 if (!dictionary(id, o)) { 00060 delete o; 00061 return false; 00062 } 00063 return true; 00064 }
NIVissimSource::DictType NIVissimSource::myDict [static, private] |
std::string NIVissimSource::myEdgeID [private] |
Definition at line 57 of file NIVissimSource.h.
bool NIVissimSource::myExact [private] |
Definition at line 59 of file NIVissimSource.h.
std::string NIVissimSource::myID [private] |
Definition at line 55 of file NIVissimSource.h.
std::string NIVissimSource::myName [private] |
Definition at line 56 of file NIVissimSource.h.
SUMOReal NIVissimSource::myQ [private] |
Definition at line 58 of file NIVissimSource.h.
SUMOReal NIVissimSource::myTimeBeg [private] |
Definition at line 61 of file NIVissimSource.h.
SUMOReal NIVissimSource::myTimeEnd [private] |
Definition at line 62 of file NIVissimSource.h.
int NIVissimSource::myVehicleCombination [private] |
Definition at line 60 of file NIVissimSource.h.
1.5.6