The IteratorIterator class
Introducción
This iterator wrapper allows the conversion of anything that is Traversable into an Iterator. It is important to understand that most classes that do not implement Iterators have reasons as most likely they do not allow the full Iterator feature set. If so, techniques should be provided to prevent misuse, otherwise expect exceptions or fatal errors.
Clases sinopsis
/* Métodos */
__construct
( Traversable $iterator
)
}Table of Contents
- IteratorIterator::__construct — Crear un iterador de cualquier cosa que se pueda recorrer
- IteratorIterator::current — Obtener el valor actual
- IteratorIterator::getInnerIterator — Obtener el iterador interno
- IteratorIterator::key — Obtener la clave del elemento actual
- IteratorIterator::next — Avanzar al siguiente elemento
- IteratorIterator::rewind — Rebobinar al primer elemento
- IteratorIterator::valid — Comprobar si el iterador es válido
There are no user contributed notes for this page.
