Wrapper for a node (const or not) allowing retrieval, but no modification. More...
#include <linkgraph.h>
Public Member Functions | |
| NodeWrapper (Tnode &node, Tedge *edges, NodeID index) | |
| Wrap a node. | |
| uint | Supply () const |
| Get supply of wrapped node. | |
| uint | Demand () const |
| Get demand of wrapped node. | |
| StationID | Station () const |
| Get ID of station belonging to wrapped node. | |
| Date | LastUpdate () const |
| Get node's last update. | |
Protected Attributes | |
| Tnode & | node |
| Node being wrapped. | |
| Tedge * | edges |
| Outgoing edges for wrapped node. | |
| NodeID | index |
| ID of wrapped node. | |
Wrapper for a node (const or not) allowing retrieval, but no modification.
| Tedge | Actual node class, may be "const BaseNode" or just "BaseNode". | |
| Tedge | Actual edge class, may be "const BaseEdge" or just "BaseEdge". |
Definition at line 148 of file linkgraph.h.
| LinkGraph::NodeWrapper< Tnode, Tedge >::NodeWrapper | ( | Tnode & | node, | |
| Tedge * | edges, | |||
| NodeID | index | |||
| ) | [inline] |
Wrap a node.
| node | Node to be wrapped. | |
| edges | Outgoing edges for node to be wrapped. | |
| index | ID of node to be wrapped. |
Definition at line 162 of file linkgraph.h.
| uint LinkGraph::NodeWrapper< Tnode, Tedge >::Demand | ( | ) | const [inline] |
Get demand of wrapped node.
Definition at line 175 of file linkgraph.h.
Referenced by AsymmetricScaler::AddNode(), AsymmetricScaler::EffectiveSupply(), AsymmetricScaler::HasDemandLeft(), and SymmetricScaler::HasDemandLeft().
| Date LinkGraph::NodeWrapper< Tnode, Tedge >::LastUpdate | ( | ) | const [inline] |
| StationID LinkGraph::NodeWrapper< Tnode, Tedge >::Station | ( | ) | const [inline] |
Get ID of station belonging to wrapped node.
Definition at line 181 of file linkgraph.h.
Referenced by FlowMapper::Run(), and LinkGraphJob::~LinkGraphJob().
| uint LinkGraph::NodeWrapper< Tnode, Tedge >::Supply | ( | ) | const [inline] |
Get supply of wrapped node.
Definition at line 169 of file linkgraph.h.
Referenced by SymmetricScaler::AddNode(), AsymmetricScaler::EffectiveSupply(), SymmetricScaler::EffectiveSupply(), SymmetricScaler::HasDemandLeft(), and LinkGraphOverlay::RebuildCache().
1.7.1