PHP Class PriorityQueue

Inheritance: implements Countable, implements IteratorAggregate
Show file Open project: sjardim/Hugopit Class Usage Examples

Protected Properties

Property Type Description
$extractMode
$items
$queue

Public Methods

Method Description
__clone ( )
__construct ( )
contains ( $data )
count ( )
extract ( )
getIterator ( )
hasPriority ( $priority )
insert ( $item, $priority )
isEmpty ( )
remove ( $item )
setExtractFlags ( $flags )
toArray ( $flag = self::EXTR_DATA )
top ( )

Method Details

__clone() public method

public __clone ( )

__construct() public method

public __construct ( )

contains() public method

public contains ( $data )

count() public method

public count ( )

extract() public method

public extract ( )

getIterator() public method

public getIterator ( )

hasPriority() public method

public hasPriority ( $priority )

insert() public method

public insert ( $item, $priority )

isEmpty() public method

public isEmpty ( )

remove() public method

public remove ( $item )

setExtractFlags() public method

public setExtractFlags ( $flags )

toArray() public method

public toArray ( $flag = self::EXTR_DATA )

top() public method

public top ( )

Property Details

$extractMode protected property

protected $extractMode

$items protected property

protected $items

$queue protected property

protected $queue