51 $iterator = $iterator->getIterator();
59 throw new Exception(
"Classes that only implement Traversable can be wrapped only after converting class IteratorIterator into c code");
74 return $this->iterator->valid();
81 return $this->iterator->key();
88 return $this->iterator->current();
95 return $this->iterator->next();
102 return $this->iterator->rewind();
112 return call_user_func_array(array($this->iterator, $func), $params);
__call($func, $params)
Aggregate the inner iterator.
Interface to create an external Iterator.
__construct(Traversable $iterator, $classname=null)
Construct an IteratorIterator from an Iterator or an IteratorAggregate.
Interface to access the current inner iteraor of iterator wrappers.
$iterator
The inner iterator must be private because when this class will be converted to c code it won't no lo...
next()
forward to next element
rewind()
rewind to the first element
Interface to detect a class is traversable using foreach.