|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Arc iterator for a graph node. More...
#include <tpl_sgraph.H>
Public Types | |
| using | Item_Type = Arc * |
| Data type returned by get_curr() | |
| using | Set_Type = Node * |
| The set type over which iteration is performed. | |
Public Types inherited from Aleph::DynList< T >::Iterator | |
| using | Item_Type = T |
| using | Iterator_Type = Iterator |
| The type of elements of list. | |
| using | Set_Type = DynList |
Public Member Functions | |
| Node_Arc_Iterator ()=default | |
| Instantiate an empty (invalid) iterator. | |
| Node_Arc_Iterator (Node *src) noexcept | |
| Instantiate an iterator over node src. | |
| Arc * | get_curr_ne () const noexcept |
| Return get_current_arc() without exception. | |
| Arc * | get_curr () const |
| Return get_current_arc() | |
| Arc * | get_current_arc_ne () const noexcept |
| Arc * | get_current_arc () const |
| Node * | get_tgt_node_ne () const noexcept |
| Returns the target node of the current arc. | |
| Node * | get_tgt_node () const |
| Returns the target node of the current arc. | |
Public Member Functions inherited from Aleph::DynList< T >::Iterator | |
| Iterator () noexcept=default | |
| The type of container. | |
| Iterator (DynList &list) noexcept | |
Iterator on the modifiable list list. | |
| Iterator (const DynList &)=delete | |
| A constant list is iterated through Const_Iterator. | |
| T & | get_curr_ne () const noexcept |
| Return the current link guaranteeing no exception. Be careful. | |
| T & | get_curr () const |
| Return the current item. | |
| T | del () |
| Remove the current item of the iterator. | |
| Slinknc * | del_ne () noexcept |
| Remove the current node, which the caller takes, and move the iterator forward; the iterator must have a current item. | |
Public Member Functions inherited from Aleph::HTList::Iterator | |
| Iterator () noexcept=default | |
| Iterator (const HTList &list) noexcept | |
Initialize iterator on at the first item of list | |
| void | reset () noexcept |
| Reset the iterator at the first item. | |
| long | get_pos () const noexcept |
| void | reset_first () noexcept |
See reset(). | |
| void | reset_last () |
| It has O(n) of performance. | |
| void | end () noexcept |
| Set the iterator to its end position, which has not. | |
| Iterator (const Iterator &)=default | |
| Iterator & | operator= (const Iterator &it) noexcept |
| bool | has_curr () const noexcept |
| bool | is_last () const noexcept |
| bool | is_in_first () const noexcept |
Return true if the iterator is positioned on the first item. | |
| bool | is_in_last () const noexcept |
Return true if the iterator is positioned on the last item. | |
| Slinknc * | get_curr () const |
| Slinknc * | get_curr_ne () const noexcept |
| Return the current link guaranteeing no exception. Be careful. | |
| void | next_ne () noexcept |
| Move the iterator one position forward guaranteeing no exception. | |
| void | next () |
| Slinknc * | del_ne () noexcept |
| Remove the current item and move the iterator one position forward, without checking that there is a current item. | |
| Slinknc * | del () |
Private Attributes | |
| Node * | src_node |
Additional Inherited Members | |
Protected Member Functions inherited from Aleph::HTList::Iterator | |
| HTList * | get_list_ptr () const noexcept |
| The list of the iterator, for the iterators of the derived lists. | |
Arc iterator for a graph node.
This class iterates over all adjacent arcs of a node belonging to a graph or digraph. The arcs of a node are in a singly linked list, so that the iterator goes only forward: it has no prev(), and the filtered iterators built on it, as Node_Arc_Iterator<GT, SA>, Out_Iterator and In_Iterator, have no prev(), prev_ne(), reset_last() nor end().
Definition at line 380 of file tpl_sgraph.H.
| using Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::Item_Type = Arc * |
Data type returned by get_curr()
Definition at line 386 of file tpl_sgraph.H.
| using Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::Set_Type = Node * |
The set type over which iteration is performed.
Definition at line 389 of file tpl_sgraph.H.
|
default |
Instantiate an empty (invalid) iterator.
|
inlinenoexcept |
Instantiate an iterator over node src.
Definition at line 395 of file tpl_sgraph.H.
|
inline |
Return get_current_arc()
Definition at line 408 of file tpl_sgraph.H.
|
inlinenoexcept |
Return get_current_arc() without exception.
Definition at line 402 of file tpl_sgraph.H.
|
inline |
Definition at line 418 of file tpl_sgraph.H.
References Aleph::get_curr().
|
inlinenoexcept |
Definition at line 413 of file tpl_sgraph.H.
References Aleph::get_curr_ne().
|
inline |
Returns the target node of the current arc.
Definition at line 431 of file tpl_sgraph.H.
References Aleph::get_curr().
|
inlinenoexcept |
Returns the target node of the current arc.
Definition at line 424 of file tpl_sgraph.H.
References Aleph::get_curr_ne().
|
private |
Definition at line 382 of file tpl_sgraph.H.