OpenTTD Source 20241224-master-gf74b0cf984
|
Annotation for a link graph edge. More...
#include <linkgraphjob.h>
Public Member Functions | |
EdgeAnnotation (const LinkGraph::BaseEdge &base) | |
uint | Flow () const |
Get the total flow on the edge. | |
void | AddFlow (uint flow) |
Add some flow. | |
void | RemoveFlow (uint flow) |
Remove some flow. | |
Data Fields | |
const LinkGraph::BaseEdge & | base |
Reference to the edge that is annotated. | |
uint | flow |
Planned flow over this edge. | |
Friends | |
bool | operator< (NodeID dest, const EdgeAnnotation &rhs) |
Annotation for a link graph edge.
Definition at line 42 of file linkgraphjob.h.
|
inline |
Definition at line 47 of file linkgraphjob.h.
|
inline |
Add some flow.
flow | Flow to be added. |
Definition at line 59 of file linkgraphjob.h.
References flow.
Referenced by Path::AddFlow().
|
inline |
Get the total flow on the edge.
Definition at line 53 of file linkgraphjob.h.
References flow.
Referenced by Path::AddFlow().
|
inline |
Remove some flow.
flow | Flow to be removed. |
Definition at line 65 of file linkgraphjob.h.
References flow.
|
friend |
Definition at line 71 of file linkgraphjob.h.
const LinkGraph::BaseEdge& LinkGraphJob::EdgeAnnotation::base |
Reference to the edge that is annotated.
Definition at line 43 of file linkgraphjob.h.
Referenced by Path::AddFlow(), LinkGraphJob::NodeAnnotation::operator[](), and LinkGraphJob::NodeAnnotation::operator[]().
uint LinkGraphJob::EdgeAnnotation::flow |
Planned flow over this edge.
Definition at line 45 of file linkgraphjob.h.
Referenced by AddFlow(), Flow(), and RemoveFlow().