Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // -------------------
16 /****************************************************************************/
17 #ifndef NIVissimClosures_h
18 #define NIVissimClosures_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
27 #include <map>
28 
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
37 public:
38  NIVissimClosures(const std::string& id,
39  int from_node, int to_node,
40  std::vector<int>& overEdges);
42  static bool dictionary(const std::string& id,
43  int from_node, int to_node, std::vector<int>& overEdges);
44  static bool dictionary(const std::string& name, NIVissimClosures* o);
45  static NIVissimClosures* dictionary(const std::string& name);
46  static void clearDict();
47 private:
48  typedef std::map<std::string, NIVissimClosures*> DictType;
49  static DictType myDict;
50  const std::string myID;
52  std::vector<int> myOverEdges;
53 
54 private:
57 
60 
61 
62 };
63 
64 
65 #endif
66 
67 /****************************************************************************/
68 
NIVissimClosures::~NIVissimClosures
~NIVissimClosures()
Definition: NIVissimClosures.cpp:38
NIVissimClosures::clearDict
static void clearDict()
Definition: NIVissimClosures.cpp:78
NIVissimClosures::myFromNode
int myFromNode
Definition: NIVissimClosures.h:51
NIVissimClosures::myOverEdges
std::vector< int > myOverEdges
Definition: NIVissimClosures.h:52
NIVissimClosures::DictType
std::map< std::string, NIVissimClosures * > DictType
Definition: NIVissimClosures.h:48
NIVissimClosures::myDict
static DictType myDict
Definition: NIVissimClosures.h:49
NIVissimClosures
Definition: NIVissimClosures.h:36
NIVissimClosures::NIVissimClosures
NIVissimClosures(const std::string &id, int from_node, int to_node, std::vector< int > &overEdges)
Definition: NIVissimClosures.cpp:31
NIVissimClosures::operator=
NIVissimClosures & operator=(const NIVissimClosures &s)
invalidated assignment operator
NIVissimClosures::myID
const std::string myID
Definition: NIVissimClosures.h:50
NIVissimClosures::myToNode
int myToNode
Definition: NIVissimClosures.h:51
config.h
NIVissimClosures::dictionary
static bool dictionary(const std::string &id, int from_node, int to_node, std::vector< int > &overEdges)
Definition: NIVissimClosures.cpp:42