« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 37 for PriorityQueue (0.003 sec.)
The PriorityQueue class 9976
« Ds\Queue::toArray Ds\PriorityQueue::allocate » PHP Manual Data Structures The PriorityQueue class 検索 The PriorityQueue class (PECL ds >= 1.0.0) はじめに A PriorityQueue is very similar to a Queue. Values are pushed into the queue with a ... a max heap. 注意 : "First in, first out" ordering is preserved for values with the same priority. 注意 : Iterating over a PriorityQueue is destructive, equivalent to successive pop operations until the queue is empty. クラス概要 class Ds\PriorityQueue implem ... locate ( int $capacity ): void public function capacity (): int public function clear (): void public function copy (): Ds\PriorityQueue public function isEmpty (): bool public function peek (): mixed public function pop (): mixed public function push ( mixed ... $value , int $priority ): void public function toArray (): array } 定義済み定数 Ds\PriorityQueue::MIN_CAPACITY 目次 Ds\PriorityQueue::allocate — Allocates enough memory for a required capacity Ds\PriorityQueue::capacity ...
https://man.mtool.work/php/8.3/class.ds-priorityqueue.html
The PriorityQueue class 9945
« Ds\Queue::toArray Ds\PriorityQueue::allocate » PHP Manual Data Structures The PriorityQueue class 検索 The PriorityQueue class (PECL ds >= 1.0.0) はじめに A PriorityQueue is very similar to a Queue. Values are pushed into the queue with a ... a max heap. 注意 : "First in, first out" ordering is preserved for values with the same priority. 注意 : Iterating over a PriorityQueue is destructive, equivalent to successive pop operations until the queue is empty. クラス概要 class Ds\PriorityQueue implem ... locate ( int $capacity ): void public function capacity (): int public function clear (): void public function copy (): Ds\PriorityQueue public function isEmpty (): bool public function peek (): mixed public function pop (): mixed public function push ( mixed ... $value , int $priority ): void public function toArray (): array } 定義済み定数 Ds\PriorityQueue::MIN_CAPACITY 目次 Ds\PriorityQueue::allocate — Allocates enough memory for a required capacity Ds\PriorityQueue::capacity ...
https://man.mtool.work/php/8.3/class.ds-priorityqueue.html
Creates a new instance 9297
« Ds\PriorityQueue::clear Ds\PriorityQueue::copy » PHP Manual Ds\PriorityQueue Creates a new instance 検索 Ds\PriorityQueue::__construct (PECL ds >= 1.0.0) Ds\PriorityQueue::__construct — Creates a new instance 説明 public function Ds\PriorityQueue ... ityQueue::__construct () Creates a new instance. 例 例1 Ds\PriorityQueue::__construct() example <?php $queue = new \Ds\PriorityQueue (); var_dump ( $queue ); ?> 上の例の出力は、 たとえば以下のよう ... になります。 object(Ds\PriorityQueue)#1 (0) { } 関連キーワード: PriorityQueue new Creates instance construct queue clear Search copy function example php var d ...
https://man.mtool.work/php/8.3/ds-priorityqueue.construct.html
Creates a new instance 9297
« Ds\PriorityQueue::clear Ds\PriorityQueue::copy » PHP Manual Ds\PriorityQueue Creates a new instance 検索 Ds\PriorityQueue::__construct (PECL ds >= 1.0.0) Ds\PriorityQueue::__construct — Creates a new instance 説明 public function Ds\PriorityQueue ... ityQueue::__construct () Creates a new instance. 例 例1 Ds\PriorityQueue::__construct() example <?php $queue = new \Ds\PriorityQueue (); var_dump ( $queue ); ?> 上の例の出力は、 たとえば以下のよう ... になります。 object(Ds\PriorityQueue)#1 (0) { } 関連キーワード: PriorityQueue Creates instance construct queue clear copy example dump ...
https://man.mtool.work/php/8.3/ds-priorityqueue.construct.html
Returns a shallow copy of the queue 9266
« Ds\PriorityQueue::__construct Ds\PriorityQueue::count » PHP Manual Ds\PriorityQueue Returns a shallow copy of the queue 検索 Ds\PriorityQueue::copy (PECL ds >= 1.0.0) Ds\PriorityQueue::copy — Returns a shallow copy of the queue 説明 publi ... c function Ds\PriorityQueue::copy (): Ds\PriorityQueue Returns a shallow copy of the queue. パラメータ この関数にはパラメータはありません。 戻り値 Ret ... urns a shallow copy of the queue. 例 例1 Ds\PriorityQueue::copy() example <?php $queue = new \Ds\PriorityQueue (); $queue -> push ( "a" , 5 ); $queue -> push ( "b" , 15 ); $queue - ... > push ( "c" , 10 ); print_r ( $queue -> copy ()); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\PriorityQueue Object ( [0] => b [1] => c [2] => a ) 関連キーワード: copy queue PriorityQueue shallow push construct count example print ...
https://man.mtool.work/php/8.3/ds-priorityqueue.copy.html
Returns a shallow copy of the queue 9219
« Ds\PriorityQueue::__construct Ds\PriorityQueue::count » PHP Manual Ds\PriorityQueue Returns a shallow copy of the queue 検索 Ds\PriorityQueue::copy (PECL ds >= 1.0.0) Ds\PriorityQueue::copy — Returns a shallow copy of the queue 説明 publi ... c function Ds\PriorityQueue::copy (): Ds\PriorityQueue Returns a shallow copy of the queue. パラメータ この関数にはパラメータはありません。 戻り値 Ret ... urns a shallow copy of the queue. 例 例1 Ds\PriorityQueue::copy() example <?php $queue = new \Ds\PriorityQueue (); $queue -> push ( "a" , 5 ); $queue -> push ( "b" , 15 ); $queue - ... > push ( "c" , 10 ); print_r ( $queue -> copy ()); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\PriorityQueue Object ( [0] => b [1] => c [2] => a ) 関連キーワード: copy queue PriorityQueue Returns shallow push パラメータ construct S ...
https://man.mtool.work/php/8.3/ds-priorityqueue.copy.html
Removes all values 9155
« Ds\PriorityQueue::capacity Ds\PriorityQueue::__construct » PHP Manual Ds\PriorityQueue Removes all values 検索 Ds\PriorityQueue::clear (PECL ds >= 1.0.0) Ds\PriorityQueue::clear — Removes all values 説明 public function Ds\PriorityQueue:: ... void Removes all values from the queue. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\PriorityQueue::clear() example <?php $queue = new \Ds\PriorityQueue (); $queue -> push ( "a" , 5 ); $queue -> push ( "b" , 15 ); $queue ... -> push ( "c" , 10 ); $queue -> clear (); print_r ( $queue ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\PriorityQueue Object ( ) 関連キーワード: PriorityQueue queue clear Removes values push capacity construct example print ...
https://man.mtool.work/php/8.3/ds-priorityqueue.clear.html
Removes all values 9124
« Ds\PriorityQueue::capacity Ds\PriorityQueue::__construct » PHP Manual Ds\PriorityQueue Removes all values 検索 Ds\PriorityQueue::clear (PECL ds >= 1.0.0) Ds\PriorityQueue::clear — Removes all values 説明 public function Ds\PriorityQueue:: ... void Removes all values from the queue. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\PriorityQueue::clear() example <?php $queue = new \Ds\PriorityQueue (); $queue -> push ( "a" , 5 ); $queue -> push ( "b" , 15 ); $queue ... -> push ( "c" , 10 ); $queue -> clear (); print_r ( $queue ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\PriorityQueue Object ( ) 関連キーワード: PriorityQueue queue clear Removes values push パラメータ capacity Search construct function voi ...
https://man.mtool.work/php/8.3/ds-priorityqueue.clear.html
Returns the current capacity 9124
« Ds\PriorityQueue::allocate Ds\PriorityQueue::clear » PHP Manual Ds\PriorityQueue Returns the current capacity 検索 Ds\PriorityQueue::capacity (PECL ds >= 1.0.0) Ds\PriorityQueue::capacity — Returns the current capacity 説明 public functio ... n Ds\PriorityQueue::capacity (): int Returns the current capacity. パラメータ この関数にはパラメータはありません。 戻り値 The current capacit ... y. 例 例1 Ds\PriorityQueue::capacity() example <?php $queue = new \Ds\PriorityQueue (); var_dump ( $queue -> capacity ()); ?> 上の例の出力は、 たとえ ... ば以下のようになります。 int(8) 関連キーワード: capacity PriorityQueue current queue allocate clear example dump ...
https://man.mtool.work/php/8.3/ds-priorityqueue.capacity.html
Returns whether the queue is empty 9124
« Ds\PriorityQueue::count Ds\PriorityQueue::jsonSerialize » PHP Manual Ds\PriorityQueue Returns whether the queue is empty 検索 Ds\PriorityQueue::isEmpty (PECL ds >= 1.0.0) Ds\PriorityQueue::isEmpty — Returns whether the queue is empty 説明 ... public function Ds\PriorityQueue::isEmpty (): bool Returns whether the queue is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns true ... if the queue is empty, false otherwise. 例 例1 Ds\PriorityQueue::isEmpty() example <?php $a = new \Ds\PriorityQueue (); $b = new \Ds\PriorityQueue (); $a -> push ( "a" , 5 ); $a -> push ... ); var_dump ( $b -> isEmpty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 関連キーワード: PriorityQueue isEmpty queue empty whether push dump count jsonSerialize otherwise example ...
https://man.mtool.work/php/8.3/ds-priorityqueue.isempty.html
PREV 1 2 3 4 NEXT