PriorityQueue::top

(Available since version 1.0)

PriorityQueue::topPeeks at the node from the top of the queue

Description

public mixed PriorityQueue::top ( void )

Returns the value at the top of the queue without removing it.

Parameters

This function has no parameters.

Return Values

The value or priority (or both) of the top node, depending on the extract flag.

Errors/Exceptions

Throws SEIDS::Heaps::PeekException when the data-structure is empty.

To Top