Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
SplMaxHeap クラス
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
はじめに
SplMaxHeap クラスは、ヒープの主要な機能を提供し、最大値を先頭に保ちます。
クラス概要
class
SplMaxHeap
extends
SplHeap
{
/* メソッド */
protected
function
compare
(
mixed
$value1
,
mixed
$value2
):
int
/* 継承したメソッド */
protected
function
SplHeap::compare
(
mixed
$value1
,
mixed
$value2
):
int
public
function
SplHeap::count
():
int
public
function
SplHeap::current
():
mixed
public
function
SplHeap::extract
():
mixed
public
function
SplHeap::insert
(
mixed
$value
):
true
public
function
SplHeap::isCorrupted
():
bool
public
function
SplHeap::isEmpty
():
bool
public
function
SplHeap::key
():
int
public
function
SplHeap::next
():
void
public
function
SplHeap::recoverFromCorruption
():
true
public
function
SplHeap::rewind
():
void
public
function
SplHeap::top
():
mixed
public
function
SplHeap::valid
():
bool
}
目次
SplMaxHeap::compare
— 要素を比較し、ヒープ内の適切な位置に置く
Found A Problem?
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^