SUMO - Simulation of Urban MObility
NIVissimClosures.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // -------------------
19 /****************************************************************************/
20 #ifndef NIVissimClosures_h
21 #define NIVissimClosures_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
34 #include <map>
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
44 public:
45  NIVissimClosures(const std::string& id,
46  int from_node, int to_node,
47  std::vector<int>& overEdges);
49  static bool dictionary(const std::string& id,
50  int from_node, int to_node, std::vector<int>& overEdges);
51  static bool dictionary(const std::string& name, NIVissimClosures* o);
52  static NIVissimClosures* dictionary(const std::string& name);
53  static void clearDict();
54 private:
55  typedef std::map<std::string, NIVissimClosures*> DictType;
56  static DictType myDict;
57  const std::string myID;
59  std::vector<int> myOverEdges;
60 
61 private:
64 
67 
68 
69 };
70 
71 
72 #endif
73 
74 /****************************************************************************/
75 
static bool dictionary(const std::string &id, int from_node, int to_node, std::vector< int > &overEdges)
std::vector< int > myOverEdges
static void clearDict()
NIVissimClosures(const std::string &id, int from_node, int to_node, std::vector< int > &overEdges)
std::map< std::string, NIVissimClosures * > DictType
static DictType myDict
NIVissimClosures & operator=(const NIVissimClosures &s)
invalidated assignment operator
const std::string myID