Abstract base class for generating roads on a Graph<Intersection,Road>. More...
#include <RoadGenerator.h>
Public Member Functions | |
virtual void | generate (Graph< Intersection, Road > &graph)=0 |
Append new bidirectional roads into the graph (no duplicates). | |
Static Protected Member Functions | |
static double | euclid (const Intersection &a, const Intersection &b) |
Compute the Euclidean distance between two intersections. | |
Abstract base class for generating roads on a Graph<Intersection,Road>.
|
staticprotected |
Compute the Euclidean distance between two intersections.
a | First intersection. |
b | Second intersection. |
|
pure virtual |
Append new bidirectional roads into the graph (no duplicates).
Implemented in HighwayGenerator, MotorwayGenerator, and StreetGenerator.