SplMaxHeap::compare
SplMinHeap::compare
Структуры данных
PHP Manual
The SplMinHeap class
Введение
The SplMinHeap class provides the main functionalities of a heap, keeping the minimum on the top.
Обзор классов
SplMinHeap
extends
SplHeap
implements
Iterator
,
Countable
{
/* Методы */
void
compare
(
mixed
$value1
,
mixed
$value2
)
/* Наследуемые методы */
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
)
}
Содержание
SplMinHeap::compare
— Compare elements in order to place them correctly in the heap while sifting up.
SplMaxHeap::compare
SplMinHeap::compare
Структуры данных
PHP Manual