SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
MSJunctionControl.cpp
Go to the documentation of this file.
1
/****************************************************************************/
9
// Container for junctions; performs operations on all stored junctions
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2001-2014 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include "
MSJunctionControl.h
"
34
#include "
MSJunction.h
"
35
#include <algorithm>
36
37
#ifdef CHECK_MEMORY_LEAKS
38
#include <
foreign/nvwa/debug_new.h
>
39
#endif // CHECK_MEMORY_LEAKS
40
41
42
// ===========================================================================
43
// member method definitions
44
// ===========================================================================
45
MSJunctionControl::MSJunctionControl
() {
46
}
47
48
49
MSJunctionControl::~MSJunctionControl
() {
50
}
51
52
53
void
54
MSJunctionControl::postloadInitContainer
() {
55
const
std::vector<MSJunction*>& junctions =
buildAndGetStaticVector
();
56
for
(std::vector<MSJunction*>::const_iterator i = junctions.begin(); i != junctions.end(); ++i) {
57
(*i)->postloadInit();
58
}
59
}
60
61
62
/****************************************************************************/
63
MSJunctionControl::~MSJunctionControl
~MSJunctionControl()
Destructor.
Definition:
MSJunctionControl.cpp:49
windows_config.h
debug_new.h
MSJunction.h
config.h
MSJunctionControl.h
MSJunctionControl::MSJunctionControl
MSJunctionControl()
Constructor.
Definition:
MSJunctionControl.cpp:45
MSJunctionControl::postloadInitContainer
void postloadInitContainer()
Closes building of junctions.
Definition:
MSJunctionControl.cpp:54
NamedObjectCont< MSJunction * >::buildAndGetStaticVector
const std::vector< MSJunction * > & buildAndGetStaticVector() const
Definition:
NamedObjectCont.h:179
build
buildd
sumo-0.21.0+dfsg
src
microsim
MSJunctionControl.cpp
Generated on Wed Mar 18 2015 22:57:45 for SUMO - Simulation of Urban MObility by
1.8.9.1