Aleph-w  1.9
General library for algorithms and data structures
Aleph::Node_Iterator< GT, Show_Node > Class Template Reference

#include <tpl_graph.H>

+ Inheritance diagram for Aleph::Node_Iterator< GT, Show_Node >:
+ Collaboration diagram for Aleph::Node_Iterator< GT, Show_Node >:

Public Types

using Itor = Filter_Iterator< GT, typename GT::Node_Iterator, Show_Node >
 
using Item_Type = typename Itor::Item_Type
 
using Set_Type = typename Itor::Set_Type
 The element type: Node*.
 
typedef GT::Node_Iterator Iterator_Type
 El tipo de iterador.
 

Public Member Functions

 Node_Iterator () noexcept
 The set: the arcs of a graph.
 
 Node_Iterator (const GT &g, Show_Node sn=Show_Node()) noexcept(noexcept(Itor(g, sn)))
 
const GT & get_container () const
 
GT::Node_Iterator & get_iterator ()
 Retorna el iterador de fondo.
 
Show_Node & get_filter ()
 
void set_filter (Show_Node si)
 
void set_cookie (void *__cookie)
 
void next ()
 Adelanta el iterador una posición.
 
void next_ne () noexcept
 
void prev ()
 Retrocede el iterador una posición.
 
void reset_first ()
 Coloca el iterador sobre el primer elemento de la secuencia.
 
void reset_last ()
 Coloca el iterador sobre el último elemento de la secuencia.
 

Detailed Description

template<class GT, class Show_Node = Dft_Show_Node<GT>>
class Aleph::Node_Iterator< GT, Show_Node >

Filtered iterator on the nodes of a graph.

Constructor & Destructor Documentation

◆ Node_Iterator()

template<class GT, class Show_Node = Dft_Show_Node<GT>>
Aleph::Node_Iterator< GT, Show_Node >::Node_Iterator ( const GT &  g,
Show_Node  sn = Show_Node() 
)
inlinenoexcept

Construct a iterator with filter sn

Parameters
[in]gthe graph
[in]snthe node filter

Member Function Documentation

◆ get_filter()

Show_Node & Aleph::Filter_Iterator< GT , GT::Node_Iterator , Show_Node >::get_filter ( )
inlineinherited

Retorna una referencia a la clase filtro. Úsese esta función si se requiere obtener el estado del filtro (recuérdese que se perderá cuando se invoque al destructor ~Filter_Iterator()


The documentation for this class was generated from the following file:

Leandro Rabindranath León