<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'class.quickhashintset.php',
    1 => 'QuickHashIntSet',
    2 => 'La clase QuickHashIntSet',
  ),
  'up' => 
  array (
    0 => 'book.quickhash.php',
    1 => 'Quickhash',
  ),
  'prev' => 
  array (
    0 => 'quickhash.examples.php',
    1 => 'Ejemplos',
  ),
  'next' => 
  array (
    0 => 'quickhashintset.add.php',
    1 => 'QuickHashIntSet::add',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/quickhash/quickhashintset.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.quickhashintset.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.quickhashintset" class="reference">
 <h1 class="title">La clase QuickHashIntSet</h1>
 

 <div class="partintro"><p class="verinfo">(PECL quickhash &gt;= Unknown)</p>


  <div class="section" id="quickhashintset.intro">
   <h2 class="title">Introducción</h2>
   <p class="simpara">
    Esta clase envuelve un conjunto que contiene números enteros.
   </p>
   <p class="simpara">
    Los conjuntos pueden ser utilizados para almacenar valores únicos con <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a> ya que la interfaz <span class="interfacename"><a href="class.iterator.php" class="interfacename">Iterator</a></span> está
    implementada. El orden en el que los elementos son devueltos no está
    garantizado.
   </p>
  </div>


  <div class="section" id="quickhashintset.synopsis">
   <h2 class="title">Sinopsis de la Clase</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">QuickHashIntSet</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.quickhashintset.php#quickhashintset.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.quickhashintset.php#quickhashintset.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="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.quickhashintset.php#quickhashintset.constants.hasher-no-hash"><var class="varname">HASHER_NO_HASH</var></a></var><span class="initializer"> = 256</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.quickhashintset.php#quickhashintset.constants.hasher-jenkins1"><var class="varname">HASHER_JENKINS1</var></a></var><span class="initializer"> = 512</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.quickhashintset.php#quickhashintset.constants.hasher-jenkins2"><var class="varname">HASHER_JENKINS2</var></a></var><span class="initializer"> = 1024</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="quickhashintset.add.php" class="methodname">add</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</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="quickhashintset.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"> = ?</span></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashintset.delete.php" class="methodname">delete</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</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="quickhashintset.exists.php" class="methodname">exists</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</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="quickhashintset.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="quickhashintset.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"> = ?</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"> = ?</span></span>): <span class="type"><a href="class.quickhashintset.php" class="type QuickHashIntSet">QuickHashIntSet</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="quickhashintset.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"> = ?</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"> = ?</span></span>): <span class="type"><a href="class.quickhashintset.php" class="type QuickHashIntSet">QuickHashIntSet</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashintset.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="quickhashintset.savetostring.php" class="methodname">saveToString</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

   }</div>


  </div>


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

    
     <dt id="quickhashintset.constants.check-for-dupes"><strong><code><a href="class.quickhashintset.php#quickhashintset.constants.check-for-dupes">QuickHashIntSet::CHECK_FOR_DUPES</a></code></strong></dt>
     <dd>
      <span class="simpara">Si está activado, la adición de elementos duplicados a un conjunto (a través de <span class="methodname"><a href="quickhashintset.add.php" class="methodname">QuickHashIntSet::add()</a></span> o
      <span class="methodname"><a href="quickhashintset.loadfromfile.php" class="methodname">QuickHashIntSet::loadFromFile()</a></span>) resultará en la eliminación de estos elementos del conjunto.
      Esto tomará más tiempo, por lo que solo se debe utilizar esta opción si es necesario.</span>
     </dd>
    

    
     <dt id="quickhashintset.constants.do-not-use-zend-alloc"><strong><code><a href="class.quickhashintset.php#quickhashintset.constants.do-not-use-zend-alloc">QuickHashIntSet::DO_NOT_USE_ZEND_ALLOC</a></code></strong></dt>
     <dd>
      <span class="simpara">Desactiva el uso del gestor de memoria interno de PHP
      para las estructuras de juego internas. Con esta opción activada, las asignaciones internas no
      contarán para los parámetros <a href="ini.core.php#ini.memory-limit" class="link">memory_limit</a>.</span>
     </dd>
    

    
     <dt id="quickhashintset.constants.hasher-no-hash"><strong><code><a href="class.quickhashintset.php#quickhashintset.constants.hasher-no-hash">QuickHashIntSet::HASHER_NO_HASH</a></code></strong></dt>
     <dd>
      <span class="simpara">Selecciona no utilizar una función de hash, sino simplemente
      utilizar un módulo para encontrar el índice de la lista de cubos. Esto no es más rápido que el hash normal, y
      da más colisiones.</span>
     </dd>
    

    
     <dt id="quickhashintset.constants.hasher-jenkins1"><strong><code><a href="class.quickhashintset.php#quickhashintset.constants.hasher-jenkins1">QuickHashIntSet::HASHER_JENKINS1</a></code></strong></dt>
     <dd>
      <span class="simpara">Esta es la función de hash por omisión para transformar los hash enteros
      en índice de lista de cubos.</span>
     </dd>
    

    
     <dt id="quickhashintset.constants.hasher-jenkins2"><strong><code><a href="class.quickhashintset.php#quickhashintset.constants.hasher-jenkins2">QuickHashIntSet::HASHER_JENKINS2</a></code></strong></dt>
     <dd>
      <span class="simpara">Selecciona un algoritmo de hash de variante.</span>
     </dd>
    

   </dl>
  </div>


 </div>

 






















































<h2>Tabla de contenidos</h2><ul class="chunklist chunklist_reference"><li><a href="quickhashintset.add.php">QuickHashIntSet::add</a> — Este m&eacute;todo a&ntilde;ade una nueva entrada al conjunto</li><li><a href="quickhashintset.construct.php">QuickHashIntSet::__construct</a> — Crear un nuevo objeto QuickHashIntSet</li><li><a href="quickhashintset.delete.php">QuickHashIntSet::delete</a> — Este m&eacute;todo elimina una entrada del conjunto</li><li><a href="quickhashintset.exists.php">QuickHashIntSet::exists</a> — Este m&eacute;todo verifica si una clave forma parte del conjunto</li><li><a href="quickhashintset.getsize.php">QuickHashIntSet::getSize</a> — Devuelve el n&uacute;mero de elementos en el conjunto</li><li><a href="quickhashintset.loadfromfile.php">QuickHashIntSet::loadFromFile</a> — Este m&eacute;todo de f&aacute;brica crea un conjunto a partir de un fichero</li><li><a href="quickhashintset.loadfromstring.php">QuickHashIntSet::loadFromString</a> — Este m&eacute;todo de f&aacute;brica crea un conjunto a partir de una string</li><li><a href="quickhashintset.savetofile.php">QuickHashIntSet::saveToFile</a> — Este m&eacute;todo almacena un conjunto en memoria en disco</li><li><a href="quickhashintset.savetostring.php">QuickHashIntSet::saveToString</a> — Este m&eacute;todo devuelve una versi&oacute;n serializada del conjunto</li></ul>
</div>
<?php manual_footer($setup); ?>