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

contributors($setup);

?>
<div id="class.quickhashintstringhash" class="reference">
 <h1 class="title">La classe QuickHashIntStringHash</h1>
 

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


  <div class="section" id="quickhashintstringhash.intro">
   <h2 class="title">Introduction</h2>
   <p class="simpara">
    Cette classe enveloppe un tableau contenant des nombres entiers, où les
    valeurs sont des chaînes de caractères. Les tableaux sont également
    disponibles en tant qu&#039;implémentation de l&#039;interface <span class="interfacename"><a href="class.arrayaccess.php" class="interfacename">ArrayAccess</a></span>.
   </p>
   <p class="simpara">
    Les hachages peuvent également être parcourus avec <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a> car l&#039;interface <span class="interfacename"><a href="class.iterator.php" class="interfacename">Iterator</a></span> est
    implémentée. L&#039;ordre dans lequel les éléments sont retournés n&#039;est pas
    garanti.
   </p>
  </div>


  <div class="section" id="quickhashintstringhash.synopsis">
   <h2 class="title">Synopsis de la 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">QuickHashIntStringHash</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.quickhashintstringhash.php#quickhashintstringhash.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.quickhashintstringhash.php#quickhashintstringhash.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.quickhashintstringhash.php#quickhashintstringhash.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.quickhashintstringhash.php#quickhashintstringhash.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.quickhashintstringhash.php#quickhashintstringhash.constants.hasher-jenkins2"><var class="varname">HASHER_JENKINS2</var></a></var><span class="initializer"> = 1024</span>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Méthodes */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="quickhashintstringhash.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="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</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="quickhashintstringhash.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="quickhashintstringhash.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="quickhashintstringhash.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="quickhashintstringhash.get.php" class="methodname">get</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.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashintstringhash.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="quickhashintstringhash.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.quickhashintstringhash.php" class="type QuickHashIntStringHash">QuickHashIntStringHash</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="quickhashintstringhash.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.quickhashintstringhash.php" class="type QuickHashIntStringHash">QuickHashIntStringHash</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="quickhashintstringhash.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="quickhashintstringhash.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="quickhashintstringhash.set.php" class="methodname">set</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="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</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="quickhashintstringhash.update.php" class="methodname">update</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="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</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="quickhashintstringhash.constants">
   <h2 class="title">Constantes pré-définies</h2>
   <dl>

    
     <dt id="quickhashintstringhash.constants.check-for-dupes"><strong><code><a href="class.quickhashintstringhash.php#quickhashintstringhash.constants.check-for-dupes">QuickHashIntStringHash::CHECK_FOR_DUPES</a></code></strong></dt>
     <dd>
      <span class="simpara">Si activé, ajouter des éléments dupliqués à un ensemble (via <span class="methodname"><a href="quickhashintstringhash.add.php" class="methodname">QuickHashIntStringHash::add()</a></span> ou
      <span class="methodname"><a href="quickhashintstringhash.loadfromfile.php" class="methodname">QuickHashIntStringHash::loadFromFile()</a></span>) entraînera la suppression de ces éléments de l&#039;ensemble.
      Cela prendra plus de temps, donc ne l&#039;utiliser que si nécessaire.</span>
     </dd>
    

    
     <dt id="quickhashintstringhash.constants.do-not-use-zend-alloc"><strong><code><a href="class.quickhashintstringhash.php#quickhashintstringhash.constants.do-not-use-zend-alloc">QuickHashIntStringHash::DO_NOT_USE_ZEND_ALLOC</a></code></strong></dt>
     <dd>
      <span class="simpara">Désactive l&#039;utilisation du gestionnaire de mémoire interne de PHP pour
      les structures de jeu internes. Avec cette option activée, les allocations internes ne compteront pas
      vers les paramètres <a href="ini.core.php#ini.memory-limit" class="link">memory_limit</a>.</span>
     </dd>
    

    
     <dt id="quickhashintstringhash.constants.hasher-no-hash"><strong><code><a href="class.quickhashintstringhash.php#quickhashintstringhash.constants.hasher-no-hash">QuickHashIntStringHash::HASHER_NO_HASH</a></code></strong></dt>
     <dd>
      <span class="simpara">Sélectionne de ne pas utiliser de fonction de hachage, mais simplement
      utiliser un modulo pour trouver l&#039;index de la liste de seaux. Cela n&#039;est pas plus rapide que le hachage normal, et
      donne plus de collisions.</span>
     </dd>
    

    
     <dt id="quickhashintstringhash.constants.hasher-jenkins1"><strong><code><a href="class.quickhashintstringhash.php#quickhashintstringhash.constants.hasher-jenkins1">QuickHashIntStringHash::HASHER_JENKINS1</a></code></strong></dt>
     <dd>
      <span class="simpara">Ceci est la fonction de hachage par défaut pour transformer les hachages entiers
      en index de liste de seaux.</span>
     </dd>
    

    
     <dt id="quickhashintstringhash.constants.hasher-jenkins2"><strong><code><a href="class.quickhashintstringhash.php#quickhashintstringhash.constants.hasher-jenkins2">QuickHashIntStringHash::HASHER_JENKINS2</a></code></strong></dt>
     <dd>
      <span class="simpara">Sélectionne un algorithme de hachage de variantes.</span>
     </dd>
    

   </dl>
  </div>



 </div>

 








































































<h2>Sommaire</h2><ul class="chunklist chunklist_reference"><li><a href="quickhashintstringhash.add.php">QuickHashIntStringHash::add</a> — Cette m&eacute;thode ajoute une nouvelle entr&eacute;e au hachage</li><li><a href="quickhashintstringhash.construct.php">QuickHashIntStringHash::__construct</a> — Cr&eacute;er un nouvel objet QuickHashIntStringHash</li><li><a href="quickhashintstringhash.delete.php">QuickHashIntStringHash::delete</a> — Cette m&eacute;thode supprime une entr&eacute;e du hachage</li><li><a href="quickhashintstringhash.exists.php">QuickHashIntStringHash::exists</a> — Cette m&eacute;thode v&eacute;rifie si une cl&eacute; fait partie du hachage</li><li><a href="quickhashintstringhash.get.php">QuickHashIntStringHash::get</a> — Cette m&eacute;thode r&eacute;cup&egrave;re une valeur du hachage par sa cl&eacute;</li><li><a href="quickhashintstringhash.getsize.php">QuickHashIntStringHash::getSize</a> — Renvoie le nombre d'&eacute;l&eacute;ments dans le hachage</li><li><a href="quickhashintstringhash.loadfromfile.php">QuickHashIntStringHash::loadFromFile</a> — Cette m&eacute;thode d'usine cr&eacute;e un hachage &agrave; partir d'un fichier</li><li><a href="quickhashintstringhash.loadfromstring.php">QuickHashIntStringHash::loadFromString</a> — Cette m&eacute;thode d'usine cr&eacute;e un hachage &agrave; partir d'une cha&icirc;ne</li><li><a href="quickhashintstringhash.savetofile.php">QuickHashIntStringHash::saveToFile</a> — Cette m&eacute;thode stocke un hachage en m&eacute;moire sur disque</li><li><a href="quickhashintstringhash.savetostring.php">QuickHashIntStringHash::saveToString</a> — Cette m&eacute;thode renvoie une version s&eacute;rialis&eacute;e du hachage</li><li><a href="quickhashintstringhash.set.php">QuickHashIntStringHash::set</a> — Cette m&eacute;thode met &agrave; jour une entr&eacute;e dans le hachage avec une nouvelle valeur, ou
  ajoute une nouvelle entr&eacute;e si l'entr&eacute;e n'existe pas</li><li><a href="quickhashintstringhash.update.php">QuickHashIntStringHash::update</a> — Cette m&eacute;thode met &agrave; jour une entr&eacute;e dans le hachage avec une nouvelle valeur</li></ul>
</div>
<?php manual_footer($setup); ?>