|
CachingIterator クラスはじめにこのオブジェクトは、別のイテレータからキャッシュされた反復処理をサポートします。 CachingIterator は、内部イテレータを常に 1 要素先読みしています。 ある要素に移動すると、その要素のキーと値を保存してから、内部イテレータを前方に移動します。 これにより、 CachingIterator::hasNext で現在の要素が最後の要素かどうかを調べられます。
クラス概要
CachingIterator
extends
IteratorIterator
implements
ArrayAccess
Countable
Stringable
/* 定数 */
public
const
int
CachingIterator::CALL_TOSTRING;
public
const
int
CachingIterator::CATCH_GET_CHILD;
public
const
int
CachingIterator::TOSTRING_USE_KEY;
public
const
int
CachingIterator::TOSTRING_USE_CURRENT;
public
const
int
CachingIterator::TOSTRING_USE_INNER;
public
const
int
CachingIterator::FULL_CACHE;
/* メソッド */
public CachingIterator::__construct(Iterator
$iterator, int $flags = CachingIterator::CALL_TOSTRING)public int CachingIterator::count()
public mixed CachingIterator::current()
public array CachingIterator::getCache()
public int CachingIterator::getFlags()
public bool CachingIterator::hasNext()
public mixed CachingIterator::key()
public void CachingIterator::next()
public bool CachingIterator::offsetExists(string
$key)public mixed CachingIterator::offsetGet(string
$key)public void CachingIterator::offsetSet(string
$key, mixed $value)public void CachingIterator::offsetUnset(string
$key)public void CachingIterator::rewind()
public void CachingIterator::setFlags(int
$flags)public string CachingIterator::__toString()
public bool CachingIterator::valid()
/* 継承したメソッド */
public mixed current()
public Iteratornull getInnerIterator()
public mixed key()
public void next()
public void rewind()
public bool valid()
定義済み定数
変更履歴
変更履歴
|