<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.ev.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'ev.depth.php',
    1 => 'Ev::depth',
    2 => '再帰の深さを返す',
  ),
  'up' => 
  array (
    0 => 'class.ev.php',
    1 => 'Ev',
  ),
  'prev' => 
  array (
    0 => 'ev.backend.php',
    1 => 'Ev::backend',
  ),
  'next' => 
  array (
    0 => 'ev.embeddablebackends.php',
    1 => 'Ev::embeddableBackends',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/ev/ev/depth.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ev.depth" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Ev::depth</h1>
  <p class="verinfo">(PECL ev &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">Ev::depth</span> &mdash; <span class="dc-title">再帰の深さを返す</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-ev.depth-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span>
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="methodname"><strong>Ev::depth</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="simpara">
   <span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span> に入った回数から
   <span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span> を正常終了した回数を引いた結果、
   つまり、再帰の深さを返します。
   <span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span>
   の外部では、この数は <strong><code>0</code></strong> になります。
   コールバックの中では、この数は <strong><code>1</code></strong>
   になります。ただし、<span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span>
   が再帰的に呼び出されている (あるいは別スレッドから呼び出されている)
   場合は、もっと大きな数になります。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-ev.depth-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-ev.depth-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   <span class="function"><strong>ev_depth()</strong></span>
   は、デフォルトのループの再帰の深さを返します。
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-ev.depth-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li>
    <span class="methodname"><a href="ev.iteration.php" class="methodname" rel="rdfs-seeAlso">Ev::iteration()</a> - デフォルトのイベントループが新しいイベントをポーリングした回数を返す</span>
   </li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>