Class ADT.Priority_queue()->Element

Inheritance graph
ADT.Heap.Element ADT.Priority_queue.Element
Description

Priority queue element.


Generic ValueType

__generic__ mixed ValueType = ValueType


Inherit this_program

inherit ::this_program(< ValueType >) : this_program


Variable pri

int|float ADT.Priority_queue.Element.pri

Description

Priority.

Elements with lower priority are returned by pop() and peek() before elements with higher.

Note

Do NOT alter directly! Use set_pri() or adjust_pri().

See also

set_pri(), adjust_pri(), pop(), peek()