SUMO - Simulation of Urban MObility
MSLinkCont.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // A vector of links
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2002-2015 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef MSLinkCont_h
22 #define MSLinkCont_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
35 #include "MSLink.h"
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class MSEdge;
42 class MSLane;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
52 typedef std::vector<MSLink*> MSLinkCont;
53 
54 
60 public:
61 #ifdef HAVE_INTERNAL_LANES
62 
64  static const MSEdge* getInternalFollowingEdge(const MSLane* fromLane,
65  const MSEdge* followerAfterInternal);
66 
67  static const MSLane* getInternalFollowingLane(const MSLane* fromLane,
68  const MSLane* followerAfterInternal);
69 #endif
70 
74  static MSLink* getConnectingLink(const MSLane& from, const MSLane& to);
75 };
76 
77 
78 #endif
79 
80 /****************************************************************************/
81 
A road/street connecting two junctions.
Definition: MSEdge.h:81
Representation of a lane in the micro simulation.
Definition: MSLane.h:77