MSVehicleContainer.cpp File Reference


Detailed Description

Author:
Christian Roessel
Date:
Mon, 12 Mar 2001
Version:
Id
MSVehicleContainer.cpp 8659 2010-04-28 06:45:28Z dkrajzew

Definition in file MSVehicleContainer.cpp.

#include <config.h>
#include <algorithm>
#include <cassert>
#include "MSVehicle.h"
#include "MSVehicleContainer.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &strm, MSVehicleContainer &cont)


Function Documentation

std::ostream& operator<< ( std::ostream &  strm,
MSVehicleContainer cont 
)

Definition at line 229 of file MSVehicleContainer.cpp.

References MSVehicleContainer::isEmpty(), MSVehicleContainer::pop(), and MSVehicleContainer::top().

00229                                                                      {
00230     strm << "------------------------------------" << std::endl;
00231     while (!cont.isEmpty()) {
00232         const MSVehicleContainer::VehicleVector &v = cont.top();
00233         for (MSVehicleContainer::VehicleVector::const_iterator i=v.begin(); i!=v.end(); ++i) {
00234             strm << (*i)->getDesiredDepart() << std::endl;
00235         }
00236         cont.pop();
00237     }
00238     return strm;
00239 }


Generated on Wed May 5 00:06:38 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6