|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Filtered iterator on directed graphs. More...
#include <tpl_graph.H>
Public Types | |
| using | Item_Type = typename Itor::Item_Type |
| using | Iterator_Type = Itor |
| The type of element. | |
Public Member Functions | |
| Digraph_Iterator (typename GT::Node *p) | |
| Iterator type. | |
| void | next () |
| Move the iterator one position forward. | |
| void | next_ne () noexcept |
| void | prev () |
| Move the iterator one position backward. | |
| bool | has_curr () const noexcept |
Return true the iterator has an current arc. | |
| GT::Arc * | get_curr () const |
| Return the current arc. | |
| GT::Arc * | get_curr_ne () const noexcept |
| Return the current arc. | |
| auto | get_current_arc () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Alias for get_curr(). | |
| GT::Node * | get_node (typename GT::Arc *a) const noexcept |
Return the connected node to arc. | |
| GT::Node * | get_node () const |
| Return the connected node to current arc. | |
| auto | get_tgt_node () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Alias for get_node(). | |
| GT::Node * | get_node_ne () const noexcept |
| Return the connected node to current arc. | |
| auto | get_tgt_node_ne () const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Alias for get_node_ne(). | |
| void | reset_first () noexcept |
| Reset the iterator to the first arc. | |
| void | reset_last () noexcept |
| Reset the iterator to the last arc. | |
| void | end () noexcept |
| Put the iterator in end state. | |
Private Types | |
| using | Itor = Filter_Iterator< typename GT::Node *, typename GT::Node_Arc_Iterator, Filter > |
Private Attributes | |
| Filter | filt |
| Itor | it |
Filtered iterator on directed graphs.
Definition at line 1608 of file tpl_graph.H.
Definition at line 1617 of file tpl_graph.H.
| using Aleph::Digraph_Iterator< GT, Filter >::Iterator_Type = Itor |
The type of element.
Definition at line 1619 of file tpl_graph.H.
|
private |
Definition at line 1610 of file tpl_graph.H.
|
inline |
Iterator type.
Initialize an iterator on adjacent arcs (incoming or outcoming) of p
Definition at line 1622 of file tpl_graph.H.
|
inlinenoexcept |
Put the iterator in end state.
Definition at line 1717 of file tpl_graph.H.
References put_itor_at_the_end().
|
inline |
Return the current arc.
Throws overflow_error it there is no current
Definition at line 1652 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::it.
Referenced by Aleph::Digraph_Iterator< GT, Filter >::get_current_arc(), and Aleph::Digraph_Iterator< GT, Filter >::get_node().
|
inlinenoexcept |
Return the current arc.
Throws overflow_error it there is no current
Definition at line 1659 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::it.
Referenced by Aleph::Digraph_Iterator< GT, Filter >::get_node_ne().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Alias for get_curr().
Returns current arc.
Definition at line 1666 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::get_curr().
|
inline |
Return the connected node to current arc.
Definition at line 1679 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::get_curr(), and Aleph::Digraph_Iterator< GT, Filter >::get_node().
|
inlinenoexcept |
Return the connected node to arc.
The result depends on iterator type
Definition at line 1673 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::filt.
Referenced by Aleph::Digraph_Iterator< GT, Filter >::get_node(), Aleph::Digraph_Iterator< GT, Filter >::get_node_ne(), and Aleph::Digraph_Iterator< GT, Filter >::get_tgt_node().
|
inlinenoexcept |
Return the connected node to current arc.
Definition at line 1692 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::get_curr_ne(), and Aleph::Digraph_Iterator< GT, Filter >::get_node().
Referenced by Aleph::Digraph_Iterator< GT, Filter >::get_tgt_node_ne().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Alias for get_node().
Returns target node of current arc.
Definition at line 1686 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::get_node().
|
inlinenoexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Alias for get_node_ne().
Returns target node of current arc (no exceptions).
Definition at line 1699 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::get_node_ne().
|
inlinenoexcept |
Return true the iterator has an current arc.
Definition at line 1645 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::it.
Referenced by compute_min_cut_capacity(), Aleph::MCF_Graph< NodeT, ArcT >::demands_satisfied(), Aleph::Testing::LayeredNetworkGenerator< Net >::generate(), Aleph::Net_Graph< NodeT, ArcT >::get_in_cap(), Aleph::Net_Graph< NodeT, ArcT >::get_in_flow(), Aleph::Net_Graph< NodeT, ArcT >::get_out_cap(), Aleph::Net_Graph< NodeT, ArcT >::get_out_flow(), Aleph::in_arcs(), Aleph::in_degree(), Aleph::in_degree(), Aleph::in_nodes(), Aleph::in_pairs(), Aleph::Net_Cost_Graph< NodeT, ArcT >::in_pars(), Aleph::Testing::RandomNetworkGenerator< Net >::is_connected(), Aleph::out_arcs(), Aleph::out_degree(), Aleph::out_degree(), Aleph::out_nodes(), Aleph::out_pairs(), Aleph::Net_Cost_Graph< NodeT, ArcT >::out_pars(), TEST(), and Aleph::vertex_connectivity().
Move the iterator one position forward.
Throws overflow_error it there is no current
Definition at line 1630 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::it, and Aleph::Filter_Iterator< Container, It, Show_Item >::next().
|
inlinenoexcept |
Definition at line 1635 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::it, and Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
Move the iterator one position backward.
Throws overflow_error if there is no current
Definition at line 1642 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::it, and Aleph::Filter_Iterator< Container, It, Show_Item >::prev().
|
inlinenoexcept |
Reset the iterator to the first arc.
Definition at line 1705 of file tpl_graph.H.
References Aleph::Filter_Iterator< Container, It, Show_Item >::reset_first().
|
inlinenoexcept |
Reset the iterator to the last arc.
Definition at line 1711 of file tpl_graph.H.
References Aleph::Digraph_Iterator< GT, Filter >::it, and Aleph::Filter_Iterator< Container, It, Show_Item >::reset_last().
Definition at line 1613 of file tpl_graph.H.
Referenced by Aleph::Digraph_Iterator< GT, Filter >::get_node().
Definition at line 1614 of file tpl_graph.H.
Referenced by Aleph::Digraph_Iterator< GT, Filter >::get_curr(), Aleph::Digraph_Iterator< GT, Filter >::get_curr_ne(), Aleph::Digraph_Iterator< GT, Filter >::has_curr(), Aleph::Digraph_Iterator< GT, Filter >::next(), Aleph::Digraph_Iterator< GT, Filter >::next_ne(), Aleph::Digraph_Iterator< GT, Filter >::prev(), and Aleph::Digraph_Iterator< GT, Filter >::reset_last().