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-2018 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 /****************************************************************************/
17 // A simple description of a position on a lane (crossing of a lane)
18 /****************************************************************************/
19 #ifndef MSCrossSection_h
20 #define MSCrossSection_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <vector>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class MSLane;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
45 public:
51  MSCrossSection(MSLane* lane, double pos) : myLane(lane) , myPosition(pos) {}
52 
53 
54 public:
57 
59  double myPosition;
60 
61 };
62 
63 
64 typedef std::vector< MSCrossSection > CrossSectionVector;
65 typedef CrossSectionVector::iterator CrossSectionVectorIt;
66 typedef CrossSectionVector::const_iterator CrossSectionVectorConstIt;
67 
68 
69 #endif
70 
71 /****************************************************************************/
72 
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:78