(Available since version 1.0)
PriorityQueue::setExtractFlags — Sets the mode of extraction
$flags
)
Defines what is extracted by PriorityQueue::current(), PriorityQueue::top() and PriorityQueue::extract().
The options are as follows:
PriorityQueue::EXTR_DATA
(0x00000001): Extract the dataPriorityQueue::EXTR_PRIORITY
(0x00000002): Extract the priorityPriorityQueue::EXTR_BOTH
(0x00000003): Extract an array containing bothNote:
The default mode is:
PriorityQueue::EXTR_DATA
flags
The desired extraction mode.
The new extraction mode.