OpenTTD Source
20241108-master-g80f628063a
|
Iterator class for getting the edges in the order of their next_edge members. More...
Public Member Functions | |
GraphEdgeIterator (LinkGraphJob &job) | |
Construct a GraphEdgeIterator. More... | |
void | SetNode (NodeID, NodeID node) |
Setup the node to start iterating at. More... | |
NodeID | Next () |
Retrieve the ID of the node the next edge points to. More... | |
Private Attributes | |
LinkGraphJob & | job |
Job being executed. | |
std::vector< LinkGraphJob::EdgeAnnotation >::const_iterator | i |
Iterator pointing to current edge. | |
std::vector< LinkGraphJob::EdgeAnnotation >::const_iterator | end |
Iterator pointing beyond last edge. | |
Iterator class for getting the edges in the order of their next_edge members.
|
inline |
Construct a GraphEdgeIterator.
job | Job to iterate on. |
|
inline |
|
inline |