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
/****************************************************************************/
16
// A vector of links
17
/****************************************************************************/
18
#ifndef MSLinkCont_h
19
#define MSLinkCont_h
20
21
22
// ===========================================================================
23
// included modules
24
// ===========================================================================
25
#include <
config.h
>
26
27
#include <vector>
28
#include "
MSLink.h
"
29
30
31
// ===========================================================================
32
// class declarations
33
// ===========================================================================
34
class
MSEdge
;
35
class
MSLane
;
36
37
38
// ===========================================================================
39
// class definitions
40
// ===========================================================================
45
typedef
std::vector<MSLink*>
MSLinkCont
;
46
47
52
class
MSLinkContHelper
{
53
public
:
56
static
const
MSEdge
*
getInternalFollowingEdge
(
const
MSLane
* fromLane,
57
const
MSEdge
* followerAfterInternal);
58
59
static
const
MSLane
*
getInternalFollowingLane
(
const
MSLane
* fromLane,
60
const
MSLane
* followerAfterInternal);
61
65
static
MSLink
*
getConnectingLink
(
const
MSLane
& from,
const
MSLane
& to);
66
};
67
68
69
#endif
70
71
/****************************************************************************/
72
MSLink.h
MSLinkContHelper::getInternalFollowingLane
static const MSLane * getInternalFollowingLane(const MSLane *fromLane, const MSLane *followerAfterInternal)
Definition:
MSLinkCont.cpp:52
MSLane
Representation of a lane in the micro simulation.
Definition:
MSLane.h:83
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:71
MSLinkCont
std::vector< MSLink * > MSLinkCont
Definition:
MSLinkCont.h:45
MSLinkContHelper
Definition:
MSLinkCont.h:52
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:33
MSEdge
A road/street connecting two junctions.
Definition:
MSEdge.h:76
MSLink
Definition:
MSLink.h:70
config.h
src
microsim
MSLinkCont.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16