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