SplHeap::valid
SplMaxHeap::compare
Datastructures
PHP Manual

# The SplMaxHeap class

## 소개

The SplMaxHeap class provides the main functionalities of a heap, keeping the maximum on the top.

## 클래스 개요

SplMaxHeap
SplMaxHeap extends SplHeap implements Iterator , Countable {
/* Methods */
void compare ( mixed `$value1` , mixed `$value2` )
/* Inherited methods */
abstractint SplHeap::compare ( mixed `$value1` , mixed `$value2` )
int SplHeap::count ( void )
mixed SplHeap::current ( void )
mixed SplHeap::extract ( void )
void SplHeap::insert ( mixed `$value` )
bool SplHeap::isEmpty ( void )
mixed SplHeap::key ( void )
void SplHeap::next ( void )
void SplHeap::recoverFromCorruption ( void )
void SplHeap::rewind ( void )
mixed SplHeap::top ( void )
bool SplHeap::valid ( void )
}

## Table of Contents

- SplMaxHeap::compare — Compare elements in order to place them correctly in the heap while sifting up.

SplHeap::valid
SplMaxHeap::compare
Datastructures
PHP Manual