SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
NBJoinedEdgesMap.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// A structure storing information about which edges were joined
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
12
/****************************************************************************/
13
//
14
// This file is part of SUMO.
15
// SUMO is free software: you can redistribute it and/or modify
16
// it under the terms of the GNU General Public License as published by
17
// the Free Software Foundation, either version 3 of the License, or
18
// (at your option) any later version.
19
//
20
/****************************************************************************/
21
#ifndef NBJoinedEdgesMap_h
22
#define NBJoinedEdgesMap_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <iostream>
35
#include <vector>
36
#include <map>
37
#include <string>
38
39
40
// ===========================================================================
41
// class declarations
42
// ===========================================================================
43
class
NBEdgeCont
;
44
45
46
// ===========================================================================
47
// class definitions
48
// ===========================================================================
53
class
NBJoinedEdgesMap
{
54
public
:
56
NBJoinedEdgesMap
();
57
59
~NBJoinedEdgesMap
();
60
63
void
init
(
NBEdgeCont
& ec);
64
67
void
appended
(
const
std::string& to,
const
std::string& what);
68
71
friend
std::ostream&
operator<<
(std::ostream& os,
72
const
NBJoinedEdgesMap
& map);
73
74
private
:
76
typedef
std::vector<std::string>
MappedEdgesVector
;
77
79
typedef
std::map<std::string, MappedEdgesVector>
JoinedEdgesMap
;
80
82
JoinedEdgesMap
myMap
;
83
84
std::map<std::string, SUMOReal>
myLengths
;
85
86
};
87
88
89
90
91
#endif
92
93
/****************************************************************************/
94
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
netbuild
NBJoinedEdgesMap.h
Generated on Sun Jun 16 2013 07:07:50 for SUMO - Simulation of Urban MObility by
1.8.1.2