Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include <ebert_graph.h>
Public Member Functions | |
IncomingArcIterator (const EbertGraph &graph, NodeIndexType node) | |
IncomingArcIterator (const EbertGraph &graph, NodeIndexType node, ArcIndexType arc) | |
This constructor takes an arc as extra argument and makes the iterator start at arc. | |
void | operator= (const IncomingArcIterator &iterator) |
Can only assign from an iterator on the same graph. | |
bool | Ok () const |
Returns true unless all the incoming arcs have been traversed. | |
void | Next () |
Advances the current incoming arc index. | |
ArcIndexType | Index () const |
Returns the index of the arc currently pointed to by the iterator. |
Note that the indices of these arc are negative, i.e. it's actually their corresponding direct arcs that are incoming to the node. The API has been designed in this way to have the set of arcs iterated by IncidentArcIterator to be the union of the sets of arcs iterated by IncomingArcIterator and OutgoingArcIterator.
Definition at line 751 of file ebert_graph.h.
operations_research::EbertGraph< NodeIndexType, ArcIndexType >::IncomingArcIterator::IncomingArcIterator | ( | const EbertGraph & | graph, | |
NodeIndexType | node | |||
) | [inline] |
Definition at line 753 of file ebert_graph.h.
operations_research::EbertGraph< NodeIndexType, ArcIndexType >::IncomingArcIterator::IncomingArcIterator | ( | const EbertGraph & | graph, | |
NodeIndexType | node, | |||
ArcIndexType | arc | |||
) | [inline] |
This constructor takes an arc as extra argument and makes the iterator start at arc.
Definition at line 762 of file ebert_graph.h.
void operations_research::EbertGraph< NodeIndexType, ArcIndexType >::IncomingArcIterator::operator= | ( | const IncomingArcIterator & | iterator | ) | [inline] |
bool operations_research::EbertGraph< NodeIndexType, ArcIndexType >::IncomingArcIterator::Ok | ( | ) | const [inline] |
Returns true unless all the incoming arcs have been traversed.
Definition at line 779 of file ebert_graph.h.
void operations_research::EbertGraph< NodeIndexType, ArcIndexType >::IncomingArcIterator::Next | ( | ) | [inline] |
ArcIndexType operations_research::EbertGraph< NodeIndexType, ArcIndexType >::IncomingArcIterator::Index | ( | ) | const [inline] |
Returns the index of the arc currently pointed to by the iterator.
Definition at line 788 of file ebert_graph.h.