<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.quickhash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'class.quickhashstringinthash.php',
    1 => 'QuickHashStringIntHash',
    2 => 'A classe QuickHashStringIntHash',
  ),
  'up' => 
  array (
    0 => 'book.quickhash.php',
    1 => 'Quickhash',
  ),
  'prev' => 
  array (
    0 => 'quickhashinthash.update.php',
    1 => 'QuickHashIntHash::update',
  ),
  'next' => 
  array (
    0 => 'quickhashstringinthash.add.php',
    1 => 'QuickHashStringIntHash::add',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/quickhash/quickhashstringinthash.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.quickhashstringinthash.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.quickhashstringinthash" class="reference">

 <h1 class="title">A classe QuickHashStringIntHash</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>


  <div class="section" id="quickhashstringinthash.intro">
   <h2 class="title">Introdução</h2>
   <p class="simpara">
    Esta classe encapsula um hash contendo strings, onde os
    valores são números inteiros. Hashes também estão disponíveis como
    implementação da interface <span class="interfacename"><a href="class.arrayaccess.php" class="interfacename">ArrayAccess</a></span>.
   </p>
   <p class="simpara">
    Hashes também podem ser iterados com <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a>, já que a interface <span class="interfacename"><a href="class.iterator.php" class="interfacename">Iterator</a></span> também é
    implementada. A ordem em que os elementos são retornados não é
    garantida.
   </p>
  </div>


  <div class="section" id="quickhashstringinthash.synopsis">
   <h2 class="title">Resumo da classe</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">QuickHashStringIntHash</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constantes */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.quickhashstringinthash.php#quickhashstringinthash.constants.check-for-dupes"><var class="varname">CHECK_FOR_DUPES</var></a></var><span class="initializer"> = 1</span>;</div>

    <div class="fieldsynopsis"><span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.quickhashstringinthash.php#quickhashstringinthash.constants.do-not-use-zend-alloc"><var class="varname">DO_NOT_USE_ZEND_ALLOC</var></a></var><span class="initializer"> = 2</span>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Métodos */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.add.php" class="methodname">add</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.construct.php" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$size</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$options</code><span class="initializer"> = 0</span></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.delete.php" class="methodname">delete</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.exists.php" class="methodname">exists</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.get.php" class="methodname">get</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.getsize.php" class="methodname">getSize</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="quickhashstringinthash.loadfromfile.php" class="methodname">loadFromFile</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$size</code><span class="initializer"> = 0</span></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$options</code><span class="initializer"> = 0</span></span>): <span class="type"><a href="class.quickhashstringinthash.php" class="type QuickHashStringIntHash">QuickHashStringIntHash</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="quickhashstringinthash.loadfromstring.php" class="methodname">loadFromString</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$contents</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$size</code><span class="initializer"> = 0</span></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$options</code><span class="initializer"> = 0</span></span>): <span class="type"><a href="class.quickhashstringinthash.php" class="type QuickHashStringIntHash">QuickHashStringIntHash</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.savetofile.php" class="methodname">saveToFile</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.savetostring.php" class="methodname">saveToString</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.set.php" class="methodname">set</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashstringinthash.update.php" class="methodname">update</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   }</div>


  </div>


  <div class="section" id="quickhashstringinthash.constants">
   <h2 class="title">Constantes predefinidas</h2>
   <dl>

    
     <dt id="quickhashstringinthash.constants.check-for-dupes"><strong><code><a href="class.quickhashstringinthash.php#quickhashstringinthash.constants.check-for-dupes">QuickHashStringIntHash::CHECK_FOR_DUPES</a></code></strong></dt>
     <dd>
      <span class="simpara">Se habilitada, adicionar elementos duplicados a um conjunto (por meio de <span class="methodname"><a href="quickhashstringinthash.add.php" class="methodname">QuickHashStringIntHash::add()</a></span> ou
       <span class="methodname"><a href="quickhashstringinthash.loadfromfile.php" class="methodname">QuickHashStringIntHash::loadFromFile()</a></span>) fará com que esses elementos sejam removidos do
       conjunto. Isso consumirá mais tempo, portanto, será usado apenas quando necessário.</span>
     </dd>
    

    
     <dt id="quickhashstringinthash.constants.do-not-use-zend-alloc"><strong><code><a href="class.quickhashstringinthash.php#quickhashstringinthash.constants.do-not-use-zend-alloc">QuickHashStringIntHash::DO_NOT_USE_ZEND_ALLOC</a></code></strong></dt>
     <dd>
      <span class="simpara">Desativa o uso do gerenciador de memória interno do PHP para estruturas de conjuntos
       internos. Com esta opção habilitada, as alocações internas não
       contarão para as configurações de <a href="ini.core.php#ini.memory-limit" class="link">memory_limit</a>.</span>
     </dd>
    

   </dl>
  </div>



 </div>

 




























































<h2>Índice</h2><ul class="chunklist chunklist_reference"><li><a href="quickhashstringinthash.add.php">QuickHashStringIntHash::add</a> — Este m&eacute;todo adiciona uma nova entrada ao hash</li><li><a href="quickhashstringinthash.construct.php">QuickHashStringIntHash::__construct</a> — Cria um novo objeto QuickHashStringIntHash</li><li><a href="quickhashstringinthash.delete.php">QuickHashStringIntHash::delete</a> — Este m&eacute;todo exclui uma entrada do hash</li><li><a href="quickhashstringinthash.exists.php">QuickHashStringIntHash::exists</a> — Este m&eacute;todo verifica se uma chave faz parte do hash</li><li><a href="quickhashstringinthash.get.php">QuickHashStringIntHash::get</a> — Este m&eacute;todo recupera um valor do hash por sua chave</li><li><a href="quickhashstringinthash.getsize.php">QuickHashStringIntHash::getSize</a> — Retorna o n&uacute;mero de elementos no hash</li><li><a href="quickhashstringinthash.loadfromfile.php">QuickHashStringIntHash::loadFromFile</a> — Este m&eacute;todo de f&aacute;brica cria um hash de um arquivo</li><li><a href="quickhashstringinthash.loadfromstring.php">QuickHashStringIntHash::loadFromString</a> — Este m&eacute;todo de f&aacute;brica cria um hash a partir de uma string</li><li><a href="quickhashstringinthash.savetofile.php">QuickHashStringIntHash::saveToFile</a> — Este m&eacute;todo armazena um hash na mem&oacute;ria no disco</li><li><a href="quickhashstringinthash.savetostring.php">QuickHashStringIntHash::saveToString</a> — Este m&eacute;todo retorna uma vers&atilde;o serializada do hash</li><li><a href="quickhashstringinthash.set.php">QuickHashStringIntHash::set</a> — Este m&eacute;todo atualiza uma entrada no hash com um novo valor, ou
   adiciona um novo se a entrada n&atilde;o existir</li><li><a href="quickhashstringinthash.update.php">QuickHashStringIntHash::update</a> — Este m&eacute;todo atualiza uma entrada no hash com um novo valor</li></ul>
</div>
<?php manual_footer($setup); ?>