Eclipse 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-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 /****************************************************************************/
16 // A simple description of a position on a lane (crossing of a lane)
17 /****************************************************************************/
18 #ifndef MSCrossSection_h
19 #define MSCrossSection_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <vector>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MSLane;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
44 public:
50  MSCrossSection(MSLane* lane, double pos) : myLane(lane), myPosition(pos) {}
51 
52 
53 public:
56 
58  double myPosition;
59 
60 };
61 
62 
63 typedef std::vector< MSCrossSection > CrossSectionVector;
64 typedef CrossSectionVector::iterator CrossSectionVectorIt;
65 typedef CrossSectionVector::const_iterator CrossSectionVectorConstIt;
66 
67 
68 #endif
69 
70 /****************************************************************************/
71 
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
CrossSectionVectorIt
CrossSectionVector::iterator CrossSectionVectorIt
Definition: MSCrossSection.h:64
MSCrossSection::MSCrossSection
MSCrossSection(MSLane *lane, double pos)
Constructor.
Definition: MSCrossSection.h:50
CrossSectionVectorConstIt
CrossSectionVector::const_iterator CrossSectionVectorConstIt
Definition: MSCrossSection.h:65
MSCrossSection
A simple description of a position on a lane (crossing of a lane)
Definition: MSCrossSection.h:43
MSCrossSection::myPosition
double myPosition
The position at the lane.
Definition: MSCrossSection.h:58
MSCrossSection::myLane
MSLane * myLane
The lane to cross.
Definition: MSCrossSection.h:55
config.h
CrossSectionVector
std::vector< MSCrossSection > CrossSectionVector
Definition: MSCrossSection.h:63