Eclipse SUMO - Simulation of Urban MObility
NIVissimEdgePosMap.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-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 /****************************************************************************/
14 // -------------------
15 /****************************************************************************/
16 #ifndef NIVissimEdgePosMap_h
17 #define NIVissimEdgePosMap_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 
26 #include <map>
27 
28 // ===========================================================================
29 // class definitions
30 // ===========================================================================
35 public:
38  void add(int edgeid, double pos);
39  void add(int edgeid, double from, double to);
40  void join(NIVissimEdgePosMap& with);
41 private:
42  typedef std::pair<double, double> Range;
43  typedef std::map<int, Range> ContType;
45 };
46 
47 
48 #endif
49 
50 /****************************************************************************/
51 
NIVissimEdgePosMap::Range
std::pair< double, double > Range
Definition: NIVissimEdgePosMap.h:42
NIVissimEdgePosMap::myCont
ContType myCont
Definition: NIVissimEdgePosMap.h:44
NIVissimEdgePosMap::join
void join(NIVissimEdgePosMap &with)
Definition: NIVissimEdgePosMap.cpp:65
NIVissimEdgePosMap::ContType
std::map< int, Range > ContType
Definition: NIVissimEdgePosMap.h:43
NIVissimEdgePosMap::~NIVissimEdgePosMap
~NIVissimEdgePosMap()
Definition: NIVissimEdgePosMap.cpp:31
NIVissimEdgePosMap::add
void add(int edgeid, double pos)
Definition: NIVissimEdgePosMap.cpp:35
NIVissimEdgePosMap::NIVissimEdgePosMap
NIVissimEdgePosMap()
Definition: NIVissimEdgePosMap.cpp:28
config.h
NIVissimEdgePosMap
Definition: NIVissimEdgePosMap.h:34