Eclipse SUMO - Simulation of Urban MObility
MSLinkCont.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-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 // A vector of links
16 /****************************************************************************/
17 #ifndef MSLinkCont_h
18 #define MSLinkCont_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <vector>
27 #include "MSLink.h"
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MSEdge;
34 class MSLane;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
44 typedef std::vector<MSLink*> MSLinkCont;
45 
46 
52 public:
55  static const MSEdge* getInternalFollowingEdge(const MSLane* fromLane,
56  const MSEdge* followerAfterInternal);
57 
58  static const MSLane* getInternalFollowingLane(const MSLane* fromLane,
59  const MSLane* followerAfterInternal);
60 
64  static MSLink* getConnectingLink(const MSLane& from, const MSLane& to);
65 };
66 
67 
68 #endif
69 
70 /****************************************************************************/
71 
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
MSEdge
A road/street connecting two junctions.
Definition: MSEdge.h:78
config.h