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. | |
uint | Capacity () const |
Get edge's capacity. | |
uint | Usage () const |
Get edge's usage. | |
uint | Distance () const |
Get edge's distance. | |
Date | LastUnrestrictedUpdate () const |
Get the date of the last update to the edge's unrestricted capacity. | |
Date | LastRestrictedUpdate () const |
Get the date of the last update to the edge's restricted capacity. | |
Date | LastUpdate () const |
Get the date of the last update to any part of the edge's capacity. | |
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 93 of file linkgraph.h.
LinkGraph::EdgeWrapper< Tedge >::EdgeWrapper | ( | Tedge & | edge | ) | [inline] |
uint LinkGraph::EdgeWrapper< Tedge >::Capacity | ( | ) | const [inline] |
Get edge's capacity.
Definition at line 109 of file linkgraph.h.
Referenced by Path::AddFlow(), LinkGraphOverlay::AddLinks(), and MultiCommodityFlow::Dijkstra().
uint LinkGraph::EdgeWrapper< Tedge >::Distance | ( | ) | const [inline] |
Get edge's distance.
Definition at line 121 of file linkgraph.h.
Referenced by MultiCommodityFlow::Dijkstra().
Date LinkGraph::EdgeWrapper< Tedge >::LastRestrictedUpdate | ( | ) | const [inline] |
Get the date of the last update to the edge's restricted capacity.
Definition at line 133 of file linkgraph.h.
Referenced by DeleteStaleLinks().
Date LinkGraph::EdgeWrapper< Tedge >::LastUnrestrictedUpdate | ( | ) | const [inline] |
Get the date of the last update to the edge's unrestricted capacity.
Definition at line 127 of file linkgraph.h.
Referenced by DeleteStaleLinks().
Date LinkGraph::EdgeWrapper< Tedge >::LastUpdate | ( | ) | const [inline] |
Get the date of the last update to any part of the edge's capacity.
Definition at line 139 of file linkgraph.h.
Referenced by DeleteStaleLinks().
uint LinkGraph::EdgeWrapper< Tedge >::Usage | ( | ) | const [inline] |
Get edge's usage.
Definition at line 115 of file linkgraph.h.
Referenced by LinkGraphOverlay::AddLinks().