SplHeap::valid
SplMaxHeap::compare
Datastructures
PHP Manual

# La classe SplMaxHeap

## Introduction

La classe SplMaxHeap fournit l'interface pour une pile, et conserve le maximum sur le haut.

## Synopsis de la classe

SplMaxHeap
SplMaxHeap extends SplHeap implements Iterator , Countable {
/* Méthodes */
void compare ( mixed `$value1` , mixed `$value2` )
/* Méthodes héritées */
abstract int 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 )
}

## Sommaire

- SplMaxHeap::compare — Compare deux éléments

SplHeap::valid
SplMaxHeap::compare
Datastructures
PHP Manual