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 /****************************************************************************/
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 
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
CrossSectionVectorIt
CrossSectionVector::iterator CrossSectionVectorIt
Definition: MSCrossSection.h:65
MSCrossSection::MSCrossSection
MSCrossSection(MSLane *lane, double pos)
Constructor.
Definition: MSCrossSection.h:51
CrossSectionVectorConstIt
CrossSectionVector::const_iterator CrossSectionVectorConstIt
Definition: MSCrossSection.h:66
MSCrossSection
A simple description of a position on a lane (crossing of a lane)
Definition: MSCrossSection.h:44
MSCrossSection::myPosition
double myPosition
The position at the lane.
Definition: MSCrossSection.h:59
MSCrossSection::myLane
MSLane * myLane
The lane to cross.
Definition: MSCrossSection.h:56
config.h
CrossSectionVector
std::vector< MSCrossSection > CrossSectionVector
Definition: MSCrossSection.h:64