Iterator class for getting edges from a FlowStatMap. More...
Public Member Functions | |
| FlowEdgeIterator (LinkGraphJob &job) | |
| Constructor. | |
| void | SetNode (NodeID source, NodeID node) |
| Setup the node to retrieve edges from. | |
| NodeID | Next () |
| Get the next node for which a flow exists. | |
Private Attributes | |
| LinkGraphJob & | job |
| Link graph job we're working with. | |
| std::map< StationID, NodeID > | station_to_node |
| Lookup table for getting NodeIDs from StationIDs. | |
| FlowStat::SharesMap::const_iterator | it |
| Current iterator in the shares map. | |
| FlowStat::SharesMap::const_iterator | end |
| End of the shares map. | |
Iterator class for getting edges from a FlowStatMap.
Definition at line 117 of file mcf.cpp.
| FlowEdgeIterator::FlowEdgeIterator | ( | LinkGraphJob & | job | ) | [inline] |
Constructor.
| job | Link graph job to work with. |
Definition at line 135 of file mcf.cpp.
References LinkGraphJob::Size(), and station_to_node.
| NodeID FlowEdgeIterator::Next | ( | ) | [inline] |
Get the next node for which a flow exists.
Definition at line 165 of file mcf.cpp.
References end, it, and station_to_node.
| void FlowEdgeIterator::SetNode | ( | NodeID | source, | |
| NodeID | node | |||
| ) | [inline] |
FlowStat::SharesMap::const_iterator FlowEdgeIterator::end [private] |
FlowStat::SharesMap::const_iterator FlowEdgeIterator::it [private] |
std::map<StationID, NodeID> FlowEdgeIterator::station_to_node [private] |
Lookup table for getting NodeIDs from StationIDs.
Definition at line 122 of file mcf.cpp.
Referenced by FlowEdgeIterator(), and Next().
1.7.1