Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NIVissimClosures.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2002-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
19// -------------------
20/****************************************************************************/
21#pragma once
22#include <config.h>
23
24#include <string>
25#include <map>
26
27
28// ===========================================================================
29// class definitions
30// ===========================================================================
35public:
36 NIVissimClosures(const std::string& id,
37 int from_node, int to_node,
38 std::vector<int>& overEdges);
40 static bool dictionary(const std::string& id,
41 int from_node, int to_node, std::vector<int>& overEdges);
42 static bool dictionary(const std::string& name, NIVissimClosures* o);
43 static NIVissimClosures* dictionary(const std::string& name);
44 static void clearDict();
45private:
46 typedef std::map<std::string, NIVissimClosures*> DictType;
48 const std::string myID;
50 std::vector<int> myOverEdges;
51
52private:
55
58
59
60};
std::map< std::string, NIVissimClosures * > DictType
NIVissimClosures(const NIVissimClosures &s)
invalidated copy constructor
static DictType myDict
NIVissimClosures & operator=(const NIVissimClosures &s)
invalidated assignment operator
static bool dictionary(const std::string &id, int from_node, int to_node, std::vector< int > &overEdges)
const std::string myID
std::vector< int > myOverEdges
static void clearDict()