|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Iterator over arcs of a graph. More...
#include <tpl_sgraph.H>
Public Types | |
| using | Item_Type = Arc * |
| Data type returned by get_curr() | |
| using | Set_Type = List_SGraph |
| The set type over which iteration is performed. | |
Public Member Functions | |
| Arc_Iterator ()=default | |
| Arc_Iterator (const List_SGraph &_g) noexcept | |
| Arc * | get_curr_ne () const noexcept |
| Returns the current arc without checking that there is one. | |
| Arc * | get_curr () const |
| Returns the current arc. | |
| Arc * | get_current_arc_ne () const noexcept |
| Returns a pointer to the current arc. | |
| Node * | get_src_node_ne () const noexcept |
| Returns the source node of the current arc (only meaningful for digraphs) | |
| Node * | get_tgt_node_ne () const noexcept |
| Returns the target node of the current arc (only meaningful for digraphs) | |
| Arc * | get_current_arc () const |
| Returns a pointer to the current arc. | |
| Node * | get_src_node () const |
| Returns the source node of the current arc (only meaningful for digraphs) | |
| Node * | get_tgt_node () const |
| Returns the target node of the current arc (only meaningful for digraphs) | |
Iterator over arcs of a graph.
This iterator traverses each arc of the graph, in the order of their addresses: the arcs are in a set ordered by them, so there is no sort_arcs(), which the graphs with a list of arcs have. It goes only forward: it has no prev(), so that the filtered Arc_Iterator<GT, SA> and the In_Iterator of List_SDigraph, which walks the arcs of the graph, have no prev(), prev_ne() nor reset_last().
Definition at line 448 of file tpl_sgraph.H.
| using Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::Arc_Iterator::Item_Type = Arc * |
Data type returned by get_curr()
Definition at line 452 of file tpl_sgraph.H.
| using Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::Arc_Iterator::Set_Type = List_SGraph |
The set type over which iteration is performed.
Definition at line 455 of file tpl_sgraph.H.
|
default |
|
inlinenoexcept |
Definition at line 463 of file tpl_sgraph.H.
|
inline |
Returns the current arc.
Definition at line 476 of file tpl_sgraph.H.
|
inlinenoexcept |
Returns the current arc without checking that there is one.
Definition at line 470 of file tpl_sgraph.H.
|
inline |
Returns a pointer to the current arc.
Definition at line 500 of file tpl_sgraph.H.
References Aleph::get_curr().
|
inlinenoexcept |
Returns a pointer to the current arc.
Definition at line 482 of file tpl_sgraph.H.
References Aleph::get_curr_ne().
|
inline |
Returns the source node of the current arc (only meaningful for digraphs)
Definition at line 506 of file tpl_sgraph.H.
|
inlinenoexcept |
Returns the source node of the current arc (only meaningful for digraphs)
Definition at line 488 of file tpl_sgraph.H.
|
inline |
Returns the target node of the current arc (only meaningful for digraphs)
Definition at line 509 of file tpl_sgraph.H.
|
inlinenoexcept |
Returns the target node of the current arc (only meaningful for digraphs)
Definition at line 494 of file tpl_sgraph.H.