|
Aleph-w 3.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_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. The visit order can be altered if the arcs are previously sorted.
Definition at line 422 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 426 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 429 of file tpl_sgraph.H.
|
default |
|
inlinenoexcept |
Definition at line 433 of file tpl_sgraph.H.
|
inline |
Returns a pointer to the current arc.
Definition at line 458 of file tpl_sgraph.H.
References Aleph::get_curr().
|
inlinenoexcept |
Returns a pointer to the current arc.
Definition at line 440 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 464 of file tpl_sgraph.H.
|
inlinenoexcept |
Returns the source node of the current arc (only meaningful for digraphs)
Definition at line 446 of file tpl_sgraph.H.
|
inline |
Returns the target node of the current arc (only meaningful for digraphs)
Definition at line 467 of file tpl_sgraph.H.
|
inlinenoexcept |
Returns the target node of the current arc (only meaningful for digraphs)
Definition at line 452 of file tpl_sgraph.H.