|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Node iterator for a graph. More...
#include <tpl_sgraph.H>
Public Types | |
| using | Item_Type = Node * |
| Data type returned by get_curr() | |
| using | Set_Type = List_SGraph |
| The set type over which iteration is performed. | |
Public Member Functions | |
| Node_Iterator ()=default | |
| Node_Iterator (const List_SGraph &g) noexcept | |
| Node * | get_curr_ne () const noexcept |
| Returns the current node without checking that there is one. | |
| Node * | get_curr () const |
| Returns the current node. | |
| Node * | get_current_node () const |
| Returns the current node. | |
| Node * | get_current_node_ne () const noexcept |
Node iterator for a graph.
This class iterates over all nodes of a graph. It goes only forward: it has no prev(), so that the filtered iterators built on it, as Node_Iterator<GT, SN>, have no prev(), prev_ne() nor reset_last().
Definition at line 324 of file tpl_sgraph.H.
| using Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::Node_Iterator::Item_Type = Node * |
Data type returned by get_curr()
Definition at line 328 of file tpl_sgraph.H.
| using Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::Node_Iterator::Set_Type = List_SGraph |
The set type over which iteration is performed.
Definition at line 331 of file tpl_sgraph.H.
|
default |
|
inlinenoexcept |
Definition at line 339 of file tpl_sgraph.H.
|
inline |
Returns the current node.
Definition at line 352 of file tpl_sgraph.H.
|
inlinenoexcept |
Returns the current node without checking that there is one.
Definition at line 346 of file tpl_sgraph.H.
|
inline |
Returns the current node.
Definition at line 358 of file tpl_sgraph.H.
References Aleph::get_curr().
|
inlinenoexcept |
Definition at line 363 of file tpl_sgraph.H.
References Aleph::get_curr_ne().