Aleph-w  1.9
General library for algorithms and data structures
Aleph::DynSlist< T >::Iterator Class Reference

#include <tpl_dynSlist.H>

+ Inheritance diagram for Aleph::DynSlist< T >::Iterator:
+ Collaboration diagram for Aleph::DynSlist< T >::Iterator:

Public Types

typedef Slist< T > Set_Type
 El tipo de conjunto sobre el cual se itera.
 
typedef T Item_Type
 El tipo de elemento que retorna get_curr().
 

Public Member Functions

 Iterator (DynSlist &list)
 Constructor.
 
T & get_curr ()
 retorna una referencia al elemento actual.
 
bool has_curr () const
 Retorna true si el iterador tiene nodo actual.
 
void next ()
 
void reset_first ()
 Coloca el iterador en el primer elemento de la lista.
 

Detailed Description

template<typename T>
class Aleph::DynSlist< T >::Iterator

Iterador sobre listas dinámicas implementadas con listas simplemente enlazadas.

Member Function Documentation

◆ next()

template<typename T>
void Aleph::Slist< T >::Iterator::next ( )
inlineinherited

Avanza el iterador hacia adelante.

Avanza el iterador hacia el elemento siguiente del actual.

Si el iterador se encuentra en el último elemento de la secuencia, entonces éste queda en un estado en que no hay elemento actual.

Exceptions
overflow_errorsi el iterador no se encuentra sobre un elemento actual.
+ Here is the call graph for this function:

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

Leandro Rabindranath León