Aleph-w  1.9
General library for algorithms and data structures
Aleph::Node_Arc_Iterator< GT, Show_Arc > Struct Template Reference

#include <tpl_graph.H>

+ Inheritance diagram for Aleph::Node_Arc_Iterator< GT, Show_Arc >:
+ Collaboration diagram for Aleph::Node_Arc_Iterator< GT, Show_Arc >:

Public Types

using Filter_Itor = Filter_Iterator< typename GT::Node *, typename GT::Node_Arc_Iterator, Show_Arc >
 
using Itor = Filter_Iterator< typename GT::Node *, typename GT::Node_Arc_Iterator, Show_Arc >
 
using Item_Type = typename Itor::Item_Type
 
using Set_Type = typename Itor::Set_Type
 type of element: Arc*
 
typedef GT::Node_Arc_Iterator Iterator_Type
 El tipo de iterador.
 

Public Member Functions

 Node_Arc_Iterator () noexcept
 Type of set: p's arcs.
 
 Node_Arc_Iterator (typename GT::Node *p, Show_Arc sa=Show_Arc()) noexcept(noexcept(Itor(p, sa)))
 
const GT::Node * & get_container () const
 
GT::Node_Arc_Iterator & get_iterator ()
 Retorna el iterador de fondo.
 
Show_Arc & get_filter ()
 
void set_filter (Show_Arc 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_Arc = Dft_Show_Arc<GT>>
struct Aleph::Node_Arc_Iterator< GT, Show_Arc >

Filtered iterator of adjacent arcs of a node.

Node_Arc_Iterator is a reflex class of GT::Node_Arc_Iterator except that the arcs are filtered according to filter criteria Show_Arc.

Show_Arc must have the following signature:

struct Show_Arc
{
  bool operator () (GT::Arc * arc) { /// the filter condition }
};

So, this iterator will only show those arcs satisfaying the filter.

Constructor & Destructor Documentation

◆ Node_Arc_Iterator()

template<class GT , class Show_Arc = Dft_Show_Arc<GT>>
Aleph::Node_Arc_Iterator< GT, Show_Arc >::Node_Arc_Iterator ( typename GT::Node *  p,
Show_Arc  sa = Show_Arc() 
)
inlinenoexcept

Construc and filtered iterator according to condition sa.

Parameters
[in]pnodo over whom you wish to iterate
[in]sathe filter

Member Function Documentation

◆ get_filter()

Show_Arc & Aleph::Filter_Iterator< GT::Node * , GT::Node_Arc_Iterator , Show_Arc >::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 struct was generated from the following file:

Leandro Rabindranath León