OpenTTD
|
Wrapper for an edge (const or not) allowing retrieval, but no modification. More...
#include <linkgraph.h>
Public Member Functions | |
EdgeWrapper (Tedge &edge) | |
Wrap a an edge. More... | |
uint | Capacity () const |
Get edge's capacity. More... | |
uint | Usage () const |
Get edge's usage. More... | |
Date | LastUnrestrictedUpdate () const |
Get the date of the last update to the edge's unrestricted capacity. More... | |
Date | LastRestrictedUpdate () const |
Get the date of the last update to the edge's restricted capacity. More... | |
Date | LastUpdate () const |
Get the date of the last update to any part of the edge's capacity. More... | |
Protected Attributes | |
Tedge & | edge |
Actual edge to be used. | |
Wrapper for an edge (const or not) allowing retrieval, but no modification.
Tedge | Actual edge class, may be "const BaseEdge" or just "BaseEdge". |
Definition at line 77 of file linkgraph.h.
|
inline |
|
inline |
Get edge's capacity.
Definition at line 93 of file linkgraph.h.
Referenced by Path::AddFlow().
|
inline |
Get the date of the last update to the edge's restricted capacity.
Definition at line 111 of file linkgraph.h.
|
inline |
Get the date of the last update to the edge's unrestricted capacity.
Definition at line 105 of file linkgraph.h.
|
inline |
Get the date of the last update to any part of the edge's capacity.
Definition at line 117 of file linkgraph.h.
|
inline |