Eclipse SUMO - Simulation of Urban MObility
NBCont.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 /****************************************************************************/
15 // Some typedef definitions fir containers
16 /****************************************************************************/
17 #ifndef NBCont_h
18 #define NBCont_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <vector>
25 #include <set>
26 
27 #include <config.h>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class NBEdge;
34 class NBRouterEdge;
35 
36 
37 // ===========================================================================
38 // container definitions
39 // ===========================================================================
41 typedef std::vector<NBEdge*> EdgeVector;
42 typedef std::vector<NBRouterEdge*> RouterEdgeVector;
43 typedef std::vector<const NBRouterEdge*> ConstRouterEdgeVector;
44 
45 typedef std::vector<std::pair<const NBRouterEdge*, const NBRouterEdge*> > ConstRouterEdgePairVector;
46 typedef std::vector<std::pair<const NBRouterEdge*, const NBRouterEdge*> > NBViaSuccessor;
47 
49 typedef std::set<NBEdge*> EdgeSet;
50 
52 typedef std::vector<int> LaneVector;
53 
54 
55 #endif
56 
57 /****************************************************************************/
58 
EdgeVector
std::vector< NBEdge * > EdgeVector
container for (sorted) edges
Definition: NBCont.h:34
NBViaSuccessor
std::vector< std::pair< const NBRouterEdge *, const NBRouterEdge * > > NBViaSuccessor
Definition: NBCont.h:46
ConstRouterEdgePairVector
std::vector< std::pair< const NBRouterEdge *, const NBRouterEdge * > > ConstRouterEdgePairVector
Definition: NBCont.h:45
RouterEdgeVector
std::vector< NBRouterEdge * > RouterEdgeVector
Definition: NBCont.h:42
NBEdge
The representation of a single edge during network building.
Definition: NBEdge.h:91
LaneVector
std::vector< int > LaneVector
container for (sorted) lanes. The lanes are sorted from rightmost (id=0) to leftmost (id=nolanes-1)
Definition: NBCont.h:52
ConstRouterEdgeVector
std::vector< const NBRouterEdge * > ConstRouterEdgeVector
Definition: NBCont.h:43
EdgeSet
std::set< NBEdge * > EdgeSet
container for unique edges
Definition: NBCont.h:49
NBRouterEdge
Superclass for NBEdge and NBEdge::Connection to initialize Router.
Definition: NBEdge.h:64
config.h