Results of 1 - 10 of about 102 for Queue (0.001 sec.)
- The Queue class | PHP 8.3 9718
- The Queue class (PECL ds >= 1.0.0) はじめに A Queue is a “first in, first out” or “FIFO” collection that only allows access to the value at the front of the queue and iterates in that order, destructively. クラス概要 class Ds\Queue implemen
... locate ( int $capacity ): void public function capacity (): int public function clear (): void public function copy (): Ds\Queue public function isEmpty (): bool public function peek (): mixed public function pop (): mixed public function push ( mixed ... ...$values ): void public function toArray (): array } 定義済み定数 Ds\Queue::MIN_CAPACITY 変更履歴 バージョン 説明 PECL ds 1.3.0 The class now implements ArrayAccess . 目次 Ds\Queue::allocate — Allo ... cates enough memory for a required capacity Ds\Queue::capacity — Returns the current capacity Ds\Queue::clear — Removes all values Ds\Queue::__construct — Creates a new instan ...
-
https://man.mtool.work/php/8.3/class.ds-queue.html
- Ds\Queue::push — Pushes values into the queue | PHP 8.3 9136
- Ds\Queue::push (PECL ds >= 1.0.0) Ds\Queue::push — Pushes values into the queue 説明 public function Ds\Queue::push ( mixed ...$values ): void Pushes values into the queue. パラメータ values The values to push into the queue. 戻り値 値を返し
... ません。 例 例1 Ds\Queue::push() example <?php $queue = new \Ds\Queue (); $queue -> push ( "a" ); $queue -> push ( "b" ); $queue -> push ( "c" , "d ... " ); $queue -> push (...[ "e" , "f" ]); print_r ( $queue ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Queue Object ( [0] = ... > a [1] => b [2] => c [3] => d [4] => e [5] => f ) 他のマニュアルの関連ページ Python queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Docker docker-compose push Docker docker imag ...
-
https://man.mtool.work/php/8.3/ds-queue.push.html
- Ds\Queue::pop — Removes and returns the value at the front of the queue | PHP 8... 9110
- Ds\Queue::pop (PECL ds >= 1.0.0) Ds\Queue::pop — Removes and returns the value at the front of the queue 説明 public function Ds\Queue::pop (): mixed Removes and returns the value at the front of the queue. パラメータ この関数にはパラメータ
... はありません。 戻り値 The removed value which was at the front of the queue. エラー / 例外 UnderflowException if empty. 例 例1 Ds\Queue::pop() example <?php $queue = new \Ds\Queue (); $queue -> push ... ( "a" ); $queue -> push ( "b" ); $queue -> push ( "c" ); var_dump ( $queue -> pop ()); var_dump ( $queue -> pop ()); var_dump ( $queue -> ... 上の例の出力は、 たとえば以下のようになります。 string(1) "a" string(1) "b" string(1) "c" 他のマニュアルの関連ページ Python queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Python multiprocessing Linux JM msgctl(2) ...
-
https://man.mtool.work/php/8.3/ds-queue.pop.html
- Ds\Queue::peek — Returns the value at the front of the queue | PHP 8.3 8993
- Ds\Queue::peek (PECL ds >= 1.0.0) Ds\Queue::peek — Returns the value at the front of the queue 説明 public function Ds\Queue::peek (): mixed Returns the value at the front of the queue, but does not remove it. パラメータ この関数にはパラメー
... タはありません。 戻り値 The value at the front of the queue. エラー / 例外 UnderflowException if empty. 例 例1 Ds\Queue::peek() example <?php $queue = new \Ds\Queue (); $queue -> pus ... h ( "a" ); $queue -> push ( "b" ); $queue -> push ( "c" ); var_dump ( $queue -> peek ()); ?> 上の例の出力は、 たとえば以下のようになります。 ... string(1) "a" 他のマニュアルの関連ページ Python queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Python multiprocessing Linux JM msgctl(2) ...
-
https://man.mtool.work/php/8.3/ds-queue.peek.html
- Ds\Queue::clear — Removes all values | PHP 8.3 8942
- Ds\Queue::clear (PECL ds >= 1.0.0) Ds\Queue::clear — Removes all values 説明 public function Ds\Queue::clear (): void Removes all values from the queue. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\Queue
... ::clear() example <?php $queue = new \Ds\Queue ([ 1 , 2 , 3 ]); print_r ( $queue ); $queue -> clear (); print_r ( $queue ); ?> 上の例の出力は、 たとえば以 ... 下のようになります。 Ds\Queue Object ( [0] => 1 [1] => 2 [2] => 3 ) Ds\Queue Object ( ) 他のマニュアルの関連ページ Python queue Python asyncio-threading ... Python concurrent.interpreters Python asyncio-queue Python multiprocessing Django tasks ...
-
https://man.mtool.work/php/8.3/ds-queue.clear.html
- Ds\Queue::__construct — Creates a new instance | PHP 8.3 8890
- Ds\Queue::__construct (PECL ds >= 1.0.0) Ds\Queue::__construct — Creates a new instance 説明 public function Ds\Queue::__construct ( mixed $values = ? ) Creates a new instance, using either a traversable object or an array for the initial v
... alues . パラメータ values A traversable object or an array to use for the initial values. 例 例1 Ds\Queue::__construct() example <?php $queue = new \Ds\Queue (); var_dump ( $queue ); $queue = new \Ds\Queue ([ 1 , 2 , 3 ]); var_d ... ump ( $queue ); ?> 上の例の出力は、 たとえば以下のようになります。 object(Ds\Queue)#2 (0) { } object(Ds\Queue)#2 (3) { [0]=> int(1) [1] ... => int(2) [2]=> int(3) } 他のマニュアルの関連ページ Python queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Python multiprocessing Django tasks ...
-
https://man.mtool.work/php/8.3/ds-queue.construct.html
- Ds\Queue::copy — Returns a shallow copy of the queue | PHP 8.3 8747
- Ds\Queue::copy (PECL ds >= 1.0.0) Ds\Queue::copy — Returns a shallow copy of the queue 説明 public function Ds\Queue::copy (): Ds\Queue Returns a shallow copy of the queue. パラメータ この関数にはパラメータはありません。 戻り値 Returns a sh
... allow copy of the queue. 例 例1 Ds\Queue::copy() example <?php $a = new \Ds\Queue ([ 1 , 2 , 3 ]); $b = $a -> copy (); // Updating the copy doesn' ... ffect the original $b -> push ( 4 ); print_r ( $a ); print_r ( $b ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Queue Object ( [0] => 1 [1] => 2 [2] => 3 ) Ds\Queue Object ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) 他のマニュアルの関連ページ P ... ython queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Python filecmp Python multiprocessing ...
-
https://man.mtool.work/php/8.3/ds-queue.copy.html
- Ds\Queue::toArray — Converts the queue to an array | PHP 8.3 8696
- Ds\Queue::toArray (PECL ds >= 1.0.0) Ds\Queue::toArray — Converts the queue to an array 説明 public function Ds\Queue::toArray (): array Converts the queue to an array . 注意 : Casting to an array is not supported yet. 注意 : This method is
... uctive. パラメータ この関数にはパラメータはありません。 戻り値 An array containing all the values in the same order as the queue. 例 例1 Ds\Queue::toArray() example <?php $queue = new \Ds\Queue ([ 1 , 2 , 3 ]); var_dump ( $queue -> toArray ()); ?> 上の ... 力は、 たとえば以下のようになります。 array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } 他のマニュアルの関連ページ Python queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Python multiprocessing Linux JM msgctl(2) ...
-
https://man.mtool.work/php/8.3/ds-queue.toarray.html
- Ds\Queue::capacity — Returns the current capacity | PHP 8.3 8670
- Ds\Queue::capacity (PECL ds >= 1.0.0) Ds\Queue::capacity — Returns the current capacity 説明 public function Ds\Queue::capacity (): int Returns the current capacity. パラメータ この関数にはパラメータはありません。 戻り値 The current capacit
... y. 例 例1 Ds\Queue::capacity() example <?php $queue = new \Ds\Queue (); var_dump ( $queue -> capacity ()); $queue -> push (... range ( 1 , 50 ... )); var_dump ( $queue -> capacity ()); ?> 上の例の出力は、 たとえば以下のようになります。 int(8) int(64) 他のマニュアルの関連ページ Python queue ... Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Python multiprocessing DuckDB R ...
-
https://man.mtool.work/php/8.3/ds-queue.capacity.html
- Ds\Queue::isEmpty — Returns whether the queue is empty | PHP 8.3 8644
- Ds\Queue::isEmpty (PECL ds >= 1.0.0) Ds\Queue::isEmpty — Returns whether the queue is empty 説明 public function Ds\Queue::isEmpty (): bool Returns whether the queue is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns t
... rue if the queue is empty, false otherwise. 例 例1 Ds\Queue::isEmpty() example <?php $a = new \Ds\Queue ([ 1 , 2 , 3 ]); $b = new \Ds\Queue ... > isEmpty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 他のマニュアルの関連ページ Python queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue Python multiprocessing Linux JM msgctl(2) ...
-
https://man.mtool.work/php/8.3/ds-queue.isempty.html