SUMO - Simulation of Urban MObility
MSJunctionControl.cpp
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // Container for junctions; performs operations on all stored junctions
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This file is part of SUMO.
00016 //   SUMO is free software: you can redistribute it and/or modify
00017 //   it under the terms of the GNU General Public License as published by
00018 //   the Free Software Foundation, either version 3 of the License, or
00019 //   (at your option) any later version.
00020 //
00021 /****************************************************************************/
00022 
00023 
00024 // ===========================================================================
00025 // included modules
00026 // ===========================================================================
00027 #ifdef _MSC_VER
00028 #include <windows_config.h>
00029 #else
00030 #include <config.h>
00031 #endif
00032 
00033 #include "MSJunctionControl.h"
00034 #include "MSJunction.h"
00035 #include <algorithm>
00036 
00037 #ifdef CHECK_MEMORY_LEAKS
00038 #include <foreign/nvwa/debug_new.h>
00039 #endif // CHECK_MEMORY_LEAKS
00040 
00041 
00042 // ===========================================================================
00043 // member method definitions
00044 // ===========================================================================
00045 MSJunctionControl::MSJunctionControl() {
00046 }
00047 
00048 
00049 MSJunctionControl::~MSJunctionControl() {
00050 }
00051 
00052 
00053 void
00054 MSJunctionControl::postloadInitContainer() {
00055     const std::vector<MSJunction*> &junctions = buildAndGetStaticVector();
00056     for (std::vector<MSJunction*>::const_iterator i = junctions.begin(); i != junctions.end(); ++i) {
00057         (*i)->postloadInit();
00058     }
00059 }
00060 
00061 
00062 /****************************************************************************/
00063 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines