downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplHeap> <SplQueue::enqueue
[edit] Last updated: Fri, 25 May 2012

view this page in

SplQueue::setIteratorMode

(PHP 5 >= 5.3.0)

SplQueue::setIteratorMode反復処理のモードを設定する

説明

void SplQueue::setIteratorMode ( int $mode )

パラメータ

mode

変更可能な反復処理のパラメータはひとつだけです。

  • イテレータの振る舞い (いずれかを選択)
    • SplDoublyLinkedList::IT_MODE_DELETE (イテレータが要素を削除する)
    • SplDoublyLinkedList::IT_MODE_KEEP (イテレータが要素を順にたどる)

デフォルトのモードは SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_KEEP です。

警告

反復処理の方向は SplQueue では変更できません。 常に SplDoublyLinkedList::IT_MODE_FIFO です。

返り値

値を返しません。

エラー / 例外

SplDoublyLinkedList::IT_MODE_LIFO を使用して反復処理の方向を変更しようとすると RuntimeException をスローします。



add a note add a note User Contributed Notes SplQueue::setIteratorMode
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites