pike.git / lib / modules / ADT.pmod / Heap.pike

version» Context lines:

pike.git/lib/modules/ADT.pmod/Heap.pike:196:   mixed pop()   {    Element value = low_pop();    if(!value)    error("Heap underflow!\n");       return value->value;   }      //! Returns the number of elements in the heap. - int _sizeof() { return num_values; } + protected int _sizeof() { return num_values; }      //! Returns the @[Element] on top of the heap (which is also the one with   //! the smallest value in the heap) without removing it.   //!   //! @returns   //! Returns the smallest @[Element] on the heap if any, and   //! @expr{UNDEFINED@} otherwise.   //!   //! @seealso   //! @[peek()], @[low_pop()], @[pop()]