Public Member Functions | Private Attributes

GraphEdgeIterator Class Reference

Iterator class for getting the edges in the order of their next_edge members. More...

Public Member Functions

 GraphEdgeIterator (LinkGraphJob *job)
 Construct a GraphEdgeIterator.
void SetNode (NodeID source, NodeID node)
 Setup the node to start iterating at.
NodeID Next ()
 Retrieve the ID of the node the next edge points to.

Private Attributes

LinkGraphgraph
 Link graph we're working with.
NodeID from
 Current "from" node.
NodeID to
 Current edge's "to" node.

Detailed Description

Iterator class for getting the edges in the order of their next_edge members.

Definition at line 11 of file mcf.cpp.


Constructor & Destructor Documentation

GraphEdgeIterator::GraphEdgeIterator ( LinkGraphJob job  )  [inline]

Construct a GraphEdgeIterator.

Parameters:
job Job to iterate on.

Definition at line 23 of file mcf.cpp.


Member Function Documentation

NodeID GraphEdgeIterator::Next (  )  [inline]

Retrieve the ID of the node the next edge points to.

Returns:
Next edge's target node ID or INVALID_NODE.

Definition at line 42 of file mcf.cpp.

References from, LinkGraph::GetEdge(), graph, Edge::next_edge, and to.

void GraphEdgeIterator::SetNode ( NodeID  source,
NodeID  node 
) [inline]

Setup the node to start iterating at.

Parameters:
source Unused.
node Node to start iterating at.

Definition at line 32 of file mcf.cpp.

References from, and to.


The documentation for this class was generated from the following file: