IteratorIterator クラス
(PHP 5 >= 5.1.0)
導入
このイテレータラッパーを使うと、 Traversable なものなら何でもイテレータに変換することができます。 注意すべきなのは、Iterator を実装していない大半のクラスにはそれなりの理由 (Iterator の機能群を完全には提供できないなど) があるということです。 If so, techniques should be provided to prevent misuse, otherwise expect exceptions or fatal errors.
クラス概要
/* メソッド */
}目次
- IteratorIterator::__construct — traversable な何かからイテレータを作成する
- IteratorIterator::current — 現在の値を取得する
- IteratorIterator::getInnerIterator — 内部イテレータを取得する
- IteratorIterator::key — 現在の要素のキーを取得する
- IteratorIterator::next — 次の要素に移動する
- IteratorIterator::rewind — 最初の要素に巻き戻す
- IteratorIterator::valid — イテレータが有効かどうかを調べる
There are no user contributed notes for this page.
