#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. | |
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.
|
inlinenoexcept |
Construc and filtered iterator according to condition sa.
| [in] | p | nodo over whom you wish to iterate |
| [in] | sa | the 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()