|
|
| Arc_Iterator () noexcept |
| | The type of set.
|
| |
|
| Arc_Iterator (const List_Graph &g) noexcept |
| | Initialize an iterator for all the arc of g
|
| |
|
Arc * | get_current_arc_ne () const noexcept |
| | Return the current arc. Throw overflow_error if there is no one.
|
| |
|
Arc * | get_current_arc () const |
| |
|
Arc * | get_curr () const |
| |
|
Arc * | get_curr_ne () const noexcept |
| |
| Node * | get_src_node () const |
| |
|
Node * | get_src_node_ne () const |
| |
| Node * | get_tgt_node () const |
| |
|
Node * | get_tgt_node_ne () const |
| |
| void | set (Dlink *new_curr) noexcept |
| |
|
void | reset_first () noexcept |
| | Reset the iterator to the first item of list.
|
| |
|
void | reset_last () noexcept |
| | Reset the iterator to the last item of list.
|
| |
|
void | end () noexcept |
| | Put the iterator out of range.
|
| |
|
bool | has_curr () const noexcept |
| | Return true if the iterator has current item.
|
| |
|
bool | is_last () const noexcept |
| |
|
bool | is_in_first () const noexcept |
| | Return true if the iterator is positiones on the first item.
|
| |
|
bool | is_in_last () const noexcept |
| | Return true if the iterator is positiones on the last item.
|
| |
| void | prev_ne () noexcept |
| |
| void | prev () |
| |
| void | next_ne () noexcept |
| |
| void | next () |
| |
|
bool | operator== (const Iterator &it) const noexcept |
| | Return true if this and it are positioned on the same item.
|
| |
|
bool | operator!= (const Iterator &it) const noexcept |
| | Return true if this and it hace different states.
|
| |
| Dlink * | del () |
| |
|
Dlink * | del_ne () noexcept |
| |
|
bool | verify (Dlink *l) const |
| | Return true if the iterator is on the list pointed by l
|
| |
|
bool | verify (const Iterator &it) const |
| | Return true if this and it are on the same list.
|
| |
template<typename __Graph_Node = Graph_Node<unsigned long>, typename __Graph_Arc = Graph_Arc<unsigned long>>
struct Aleph::List_Graph< __Graph_Node, __Graph_Arc >::Arc_Iterator
Iterator on all arcs of a graph.
This iterator scans all the arcs of the graph. The apparition order is random, but this can be modified through of sort_arcs() method.
- See also
- sort_arcs()