96 bool save(std::vector<std::string>& saved,
103 std::vector<RODFRouteDesc>&
get() {
123 void removeIllegal(
const std::vector<ROEdgeVector >& illegals);
Static storage of an output device and its base (abstract) implementation.
A class for sorting route descriptions by their length.
by_distance_sorter()
Constructor.
int operator()(const RODFRouteDesc &p1, const RODFRouteDesc &p2)
Sorting function; compares RODFRouteDesc::distance2Last.
A class for finding a same route (one that passes the same edges)
route_finder(const RODFRouteDesc &desc)
onstructor
bool operator()(const RODFRouteDesc &desc)
The comparing function; compares passed edges.
const RODFRouteDesc & myDesc
The route description for which a same shall be found.
A container for DFROUTER-routes.
void setID(RODFRouteDesc &desc) const
Computes and sets the id of a route.
void removeIllegal(const std::vector< ROEdgeVector > &illegals)
Removes "illegal" routes.
void addRouteDesc(RODFRouteDesc &desc)
Adds a route to the container.
std::vector< RODFRouteDesc > myRoutes
Stored route descriptions.
~RODFRouteCont()
Destructor.
RODFRouteCont()
Constructor.
bool save(std::vector< std::string > &saved, const std::string &prependix, OutputDevice &out)
Saves routes.
std::vector< RODFRouteDesc > & get()
Returns the container of stored routes.
bool removeRouteDesc(RODFRouteDesc &desc)
Removes the given route description from the container.
std::map< std::pair< ROEdge *, ROEdge * >, int > myConnectionOccurrences
Counts how many routes connecting the key-edges were already stored.
void sortByDistance()
Sorts routes by their distance (length)
A route within the DFROUTER.
ROEdgeVector edges2Pass
The edges the route is made of.