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