The SplPriorityQueue classIntroductionThe SplPriorityQueue class provides the main functionalities of a prioritized queue, implemented using a max heap.
Class synopsis
SplPriorityQueue
implements
Iterator
Countable
/* Constants */
public
const
int
SplPriorityQueue::EXTR_BOTH;
public
const
int
SplPriorityQueue::EXTR_PRIORITY;
public
const
int
SplPriorityQueue::EXTR_DATA;
/* Methods */
public int compare(mixed
$priority1 , mixed $priority2 )public int count()
public mixed current()
public mixed extract()
public int getExtractFlags()
public true insert(mixed
$value , mixed $priority )public bool isCorrupted()
public bool isEmpty()
public int key()
public void next()
public true recoverFromCorruption()
public void rewind()
public int setExtractFlags(int
$flags )public mixed top()
public bool valid()
Predefined Constants
|