#include <NIVissimVehicleType.h>
Definition at line 43 of file NIVissimVehicleType.h.
Public Member Functions | |
| NIVissimVehicleType (int id, const std::string &name, const std::string &category, SUMOReal length, const RGBColor &color, SUMOReal amax, SUMOReal dmax) | |
| ~NIVissimVehicleType () | |
Static Public Member Functions | |
| static void | clearDict () |
| static NIVissimVehicleType * | dictionary (int id) |
| static bool | dictionary (int id, NIVissimVehicleType *o) |
| static bool | dictionary (int id, const std::string &name, const std::string &category, SUMOReal length, const RGBColor &color, SUMOReal amax, SUMOReal dmax) |
Private Types | |
| typedef std::map< int, NIVissimVehicleType * > | DictType |
Private Attributes | |
| SUMOReal | myAMax |
| std::string | myCategory |
| RGBColor | myColor |
| SUMOReal | myDMax |
| int | myID |
| SUMOReal | myLength |
| std::string | myName |
Static Private Attributes | |
| static DictType | myDict |
typedef std::map<int, NIVissimVehicleType *> NIVissimVehicleType::DictType [private] |
Definition at line 64 of file NIVissimVehicleType.h.
| NIVissimVehicleType::NIVissimVehicleType | ( | int | id, | |
| const std::string & | name, | |||
| const std::string & | category, | |||
| SUMOReal | length, | |||
| const RGBColor & | color, | |||
| SUMOReal | amax, | |||
| SUMOReal | dmax | |||
| ) |
Definition at line 39 of file NIVissimVehicleType.cpp.
Referenced by dictionary().
00042 : myID(id), myName(name), myCategory(category), myLength(length), 00043 myColor(color), myAMax(amax), myDMax(dmax) {}
| NIVissimVehicleType::~NIVissimVehicleType | ( | ) |
| void NIVissimVehicleType::clearDict | ( | ) | [static] |
Definition at line 85 of file NIVissimVehicleType.cpp.
References myDict.
Referenced by NIImporter_Vissim::~NIImporter_Vissim().
00085 { 00086 for (DictType::iterator i=myDict.begin(); i!=myDict.end(); i++) { 00087 delete(*i).second; 00088 } 00089 myDict.clear(); 00090 }
| NIVissimVehicleType * NIVissimVehicleType::dictionary | ( | int | id | ) | [static] |
Definition at line 76 of file NIVissimVehicleType.cpp.
References myDict.
00076 { 00077 DictType::iterator i=myDict.find(id); 00078 if (i==myDict.end()) { 00079 return 0; 00080 } 00081 return (*i).second; 00082 }
| bool NIVissimVehicleType::dictionary | ( | int | id, | |
| NIVissimVehicleType * | o | |||
| ) | [static] |
| bool NIVissimVehicleType::dictionary | ( | int | id, | |
| const std::string & | name, | |||
| const std::string & | category, | |||
| SUMOReal | length, | |||
| const RGBColor & | color, | |||
| SUMOReal | amax, | |||
| SUMOReal | dmax | |||
| ) | [static] |
Definition at line 51 of file NIVissimVehicleType.cpp.
References NIVissimVehicleType().
Referenced by NIVissimSingleTypeParser_Fahrzeugtypdefinition::parse().
00053 { 00054 NIVissimVehicleType *o = new NIVissimVehicleType(id, name, category, 00055 length, color, amax, dmax); 00056 if (!dictionary(id, o)) { 00057 delete o; 00058 return false; 00059 } 00060 return true; 00061 }
SUMOReal NIVissimVehicleType::myAMax [private] |
Definition at line 62 of file NIVissimVehicleType.h.
std::string NIVissimVehicleType::myCategory [private] |
Definition at line 59 of file NIVissimVehicleType.h.
RGBColor NIVissimVehicleType::myColor [private] |
Definition at line 61 of file NIVissimVehicleType.h.
NIVissimVehicleType::DictType NIVissimVehicleType::myDict [static, private] |
SUMOReal NIVissimVehicleType::myDMax [private] |
Definition at line 62 of file NIVissimVehicleType.h.
int NIVissimVehicleType::myID [private] |
Definition at line 57 of file NIVissimVehicleType.h.
SUMOReal NIVissimVehicleType::myLength [private] |
Definition at line 60 of file NIVissimVehicleType.h.
std::string NIVissimVehicleType::myName [private] |
Definition at line 58 of file NIVissimVehicleType.h.
1.5.6