Eclipse SUMO - Simulation of Urban MObility
MSLinkCont.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2002-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
/****************************************************************************/
15
// A vector of links
16
/****************************************************************************/
17
#ifndef MSLinkCont_h
18
#define MSLinkCont_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <vector>
27
#include "
MSLink.h
"
28
29
30
// ===========================================================================
31
// class declarations
32
// ===========================================================================
33
class
MSEdge
;
34
class
MSLane
;
35
36
37
// ===========================================================================
38
// class definitions
39
// ===========================================================================
44
typedef
std::vector<MSLink*>
MSLinkCont
;
45
46
51
class
MSLinkContHelper
{
52
public
:
55
static
const
MSEdge
*
getInternalFollowingEdge
(
const
MSLane
* fromLane,
56
const
MSEdge
* followerAfterInternal);
57
58
static
const
MSLane
*
getInternalFollowingLane
(
const
MSLane
* fromLane,
59
const
MSLane
* followerAfterInternal);
60
64
static
MSLink
*
getConnectingLink
(
const
MSLane
& from,
const
MSLane
& to);
65
};
66
67
68
#endif
69
70
/****************************************************************************/
71
MSLink.h
MSLinkContHelper::getInternalFollowingLane
static const MSLane * getInternalFollowingLane(const MSLane *fromLane, const MSLane *followerAfterInternal)
Definition:
MSLinkCont.cpp:51
MSLane
Representation of a lane in the micro simulation.
Definition:
MSLane.h:82
MSLinkContHelper::getConnectingLink
static MSLink * getConnectingLink(const MSLane &from, const MSLane &to)
Returns the link connecting both lanes Both lanes have to be non-internal; 0 may be returned if no co...
Definition:
MSLinkCont.cpp:70
MSLinkCont
std::vector< MSLink * > MSLinkCont
Definition:
MSLinkCont.h:44
MSLinkContHelper
Definition:
MSLinkCont.h:51
MSLinkContHelper::getInternalFollowingEdge
static const MSEdge * getInternalFollowingEdge(const MSLane *fromLane, const MSEdge *followerAfterInternal)
Returns the internal lane that must be passed in order to get to the desired edge Returns 0 if no suc...
Definition:
MSLinkCont.cpp:32
MSEdge
A road/street connecting two junctions.
Definition:
MSEdge.h:78
MSLink
Definition:
MSLink.h:69
config.h
src
microsim
MSLinkCont.h
Generated on Sun Jun 21 2020 23:18:41 for Eclipse SUMO - Simulation of Urban MObility by
1.8.17