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 /****************************************************************************/
16 // -------------------
17 /****************************************************************************/
18 #ifndef NIVissimClosures_h
19 #define NIVissimClosures_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
28 #include <map>
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
38 public:
39  NIVissimClosures(const std::string& id,
40  int from_node, int to_node,
41  std::vector<int>& overEdges);
43  static bool dictionary(const std::string& id,
44  int from_node, int to_node, std::vector<int>& overEdges);
45  static bool dictionary(const std::string& name, NIVissimClosures* o);
46  static NIVissimClosures* dictionary(const std::string& name);
47  static void clearDict();
48 private:
49  typedef std::map<std::string, NIVissimClosures*> DictType;
50  static DictType myDict;
51  const std::string myID;
53  std::vector<int> myOverEdges;
54 
55 private:
58 
61 
62 
63 };
64 
65 
66 #endif
67 
68 /****************************************************************************/
69 
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