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-2018 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 NIVissimEdgePosMap_h
18 #define NIVissimEdgePosMap_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 
27 #include <map>
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
36 public:
39  void add(int edgeid, double pos);
40  void add(int edgeid, double from, double to);
41  void join(NIVissimEdgePosMap& with);
42 private:
43  typedef std::pair<double, double> Range;
44  typedef std::map<int, Range> ContType;
45  ContType myCont;
46 };
47 
48 
49 #endif
50 
51 /****************************************************************************/
52 
std::pair< double, double > Range
std::map< int, Range > ContType
void add(int edgeid, double pos)
void join(NIVissimEdgePosMap &with)