SUMO - Simulation of Urban MObility
MSCrossSection.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-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 /****************************************************************************/
19 // A simple description of a position on a lane (crossing of a lane)
20 /****************************************************************************/
21 #ifndef MSCrossSection_h
22 #define MSCrossSection_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 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class MSLane;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
57  MSCrossSection(MSLane* lane, double pos) : myLane(lane) , myPosition(pos) {}
58 
59 
60 public:
63 
65  double myPosition;
66 
67 };
68 
69 
70 typedef std::vector< MSCrossSection > CrossSectionVector;
71 typedef CrossSectionVector::iterator CrossSectionVectorIt;
72 typedef CrossSectionVector::const_iterator CrossSectionVectorConstIt;
73 
74 
75 #endif
76 
77 /****************************************************************************/
78 
A simple description of a position on a lane (crossing of a lane)
std::vector< MSCrossSection > CrossSectionVector
CrossSectionVector::const_iterator CrossSectionVectorConstIt
double myPosition
The position at the lane.
MSCrossSection(MSLane *lane, double pos)
Constructor.
CrossSectionVector::iterator CrossSectionVectorIt
MSLane * myLane
The lane to cross.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77