SplPriorityQueue
PHP 5.2.X userland implementation of PHP's SplPriorityQueue
package | Zend_Stdlib |
---|
__construct() : void
Creates a new, empty queue
compare(mixed $priority1, mixed $priority2) : integer
Returns positive integer if $priority1 is greater than $priority2, 0 if equal, negative otherwise.
Unused internally, and only included in order to retain the same interface as PHP's SplPriorityQueue.
mixed
mixed
integer
count() : integer
integer
current() : mixed
mixed
extract() : \mixed;
Returns either the value, the priority, or both, depending on the extract flag.
\mixed;
insert(mixed $value, mixed $priority) : void
mixed
mixed
isEmpty() : boolean
boolean
key() : mixed
mixed
Usually an int or stringnext() : void
recoverFromCorruption() : void
Unimplemented, and only included in order to retain the same interface as PHP's SplPriorityQueue.
rewind() : void
setExtractFlags(integer $flags) : void
Defines what is extracted by SplPriorityQueue::current(), SplPriorityQueue::top() and SplPriorityQueue::extract().
The default mode is SplPriorityQueue::EXTR_DATA.
integer
top() : mixed
mixed
valid() : boolean
boolean
prepareQueue() : void
sort() : void
$count : integer
0
$extractFlags : integer
self::EXTR_DATA
$preparedQueue : boolean | array
false
$queue : array
array()
EXTR_BOTH = 3
EXTR_DATA = 1
EXTR_PRIORITY = 2