ROHelper.h File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
Sept 2002
Version:
Id
ROHelper.h 8236 2010-02-10 11:16:41Z behrisch

Definition in file ROHelper.h.

#include <config.h>
#include <functional>
#include <vector>
#include "ROEdge.h"
#include "ROVehicle.h"

Go to the source code of this file.

Namespaces

namespace  ROHelper

Data Structures

class  ROVehicleByDepartureComperator
 A function for sorting vehicles by their departure time. More...

Functions

std::ostream & operator<< (std::ostream &os, const std::vector< const ROEdge * > &ev)
 Output operator for edge lists (edges will be written as their ids, divided by spaces).
void ROHelper::recheckForLoops (std::vector< const ROEdge * > &edges) throw ()
 Computes the costs (travel time) for the given list of edges.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const std::vector< const ROEdge * > &  ev 
)

Output operator for edge lists (edges will be written as their ids, divided by spaces).

Definition at line 84 of file ROHelper.cpp.

References ROEdge::ET_DISTRICT.

00084                                                                            {
00085     bool hadFirst = false;
00086     for (std::vector<const ROEdge*>::const_iterator j=ev.begin(); j!=ev.end(); j++) {
00087         if ((*j)->getType() != ROEdge::ET_DISTRICT) {
00088             if (hadFirst) {
00089                 os << ' ';
00090             }
00091             os << (*j)->getID();
00092             hadFirst = true;
00093         }
00094     }
00095     return os;
00096 }


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