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) |
| 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 }
1.5.6