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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // A vector of links
19 /****************************************************************************/
20 #ifndef MSLinkCont_h
21 #define MSLinkCont_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <vector>
34 #include "MSLink.h"
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class MSEdge;
41 class MSLane;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
51 typedef std::vector<MSLink*> MSLinkCont;
52 
53 
59 public:
62  static const MSEdge* getInternalFollowingEdge(const MSLane* fromLane,
63  const MSEdge* followerAfterInternal);
64 
65  static const MSLane* getInternalFollowingLane(const MSLane* fromLane,
66  const MSLane* followerAfterInternal);
67 
71  static MSLink* getConnectingLink(const MSLane& from, const MSLane& to);
72 };
73 
74 
75 #endif
76 
77 /****************************************************************************/
78 
A road/street connecting two junctions.
Definition: MSEdge.h:80
Representation of a lane in the micro simulation.
Definition: MSLane.h:77