1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-25 00:02:09 +01:00

Remove quickhash docs

This commit is contained in:
George Peter Banyard
2021-05-25 20:39:14 +01:00
parent 3e69bad0d5
commit f381154186
10 changed files with 0 additions and 1031 deletions

View File

@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9e53e696d11ac5db4b9f6f19e9aa4e9ed6aac6d9 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<book xml:id="book.quickhash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Quickhash</title>
<titleabbrev>Quickhash</titleabbrev>
<preface xml:id="intro.quickhash">
&reftitle.intro;
<para>
Модуль quickhash содержит набор строго типизированных классов для
работы со специфичными реализациями коллекций типа Set и Hash.
</para>
</preface>
&reference.quickhash.setup;
&reference.quickhash.constants;
&reference.quickhash.examples;
&reference.quickhash.quickhashintset;
&reference.quickhash.quickhashinthash;
&reference.quickhash.quickhashstringinthash;
&reference.quickhash.quickhashintstringhash;
</book>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9e53e696d11ac5db4b9f6f19e9aa4e9ed6aac6d9 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<appendix xml:id="quickhash.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
&no.constants;
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,151 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1984b7e7c4ed8f5a060ac6866c65e7b8f187111c Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<chapter xml:id="quickhash.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.examples;
<example>
<title>Примеры использования Quickhash</title>
<programlisting role="php">
<![CDATA[
<?php
$set = new QuickHashIntSet( 1024, QuickHashIntSet::CHECK_FOR_DUPES );
$set->add( 1 );
$set->add( 3 );
var_dump( $set->exists( 3 ) );
var_dump( $set->exists( 4 ) );
$set->saveToFile( "/tmp/test-set.set" );
$newSet = QuickHashIntSet::loadFromFile(
"/tmp/test-set.set"
);
var_dump( $newSet->exists( 3 ) );
var_dump( $newSet->exists( 4 ) );
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
bool(true)
bool(false)
bool(true)
bool(false)
]]>
</screen>
</example>
<example>
<title>Пример использования Quickhash с доступом как к массиву</title>
<programlisting role="php">
<![CDATA[
<?php
$hash = new QuickHashIntHash( 64 );
// Добавление и обновление записей в хеш-таблицу.
$hash[3] = 145926;
$hash[3] = 1415926;
$hash[2] = 72;
// Проверка существования ключа в хеш-таблице
var_dump( isset( $hash[3] ) );
// Удаление записи из хеш-таблицы
unset( $hash[2] );
// Извлечение значения из хеш-таблицы
echo $hash[3], "\n";
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
bool(true)
1415926
]]>
</screen>
</example>
<example>
<title>Пример итерирования</title>
<programlisting role="php">
<![CDATA[
<?php
$hash = new QuickHashIntHash( 64 );
// Добавление записей.
$hash[1] = 145926;
$hash[2] = 1415926;
$hash[3] = 72;
$hash[4] = 712314;
$hash[5] = -4234;
foreach( $hash as $key => $value )
{
echo $key, ' => ', $value, "\n";
}
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
5 => -4234
4 => 712314
1 => 145926
2 => 1415926
3 => 72
]]>
</screen>
</example>
<example>
<title>Пример со строковыми значениями</title>
<programlisting role="php">
<![CDATA[
<?php
$hash = new QuickHashIntStringHash( 64 );
// Добавление записей.
$hash[1] = "one million four hundred fifteen thousand nine hundred twenty six";
$hash->add( 2, "one more" );
foreach( $hash as $key => $value )
{
echo $key, ' => ', $value, "\n";
}
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
1 => one million four hundred fifteen thousand nine hundred twenty six
2 => one more
]]>
</screen>
</example>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,157 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<phpdoc:classref xml:id="class.quickhashinthash" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс QuickHashIntHash</title>
<titleabbrev>QuickHashIntHash</titleabbrev>
<partintro>
<!-- {{{ QuickHashIntHash intro -->
<section xml:id="quickhashinthash.intro">
&reftitle.intro;
<para>
Класс-обёртка для хеш-таблицы с ключами и значениями, являющимися
целыми числами. Также реализует интерфейс ArrayAccess.
</para>
<para>
Классом реализуется интерфейс Iterator, что даёт возможность перебора
с помощью foreach. Порядок следования элементов не гарантируется.
</para>
</section>
<!-- }}} -->
<section xml:id="quickhashinthash.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>QuickHashIntHash</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>QuickHashIntHash</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">Константы</classsynopsisinfo>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashinthash.constants.check-for-dupes">QuickHashIntHash::CHECK_FOR_DUPES</varname>
<initializer>1</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashinthash.constants.do-not-use-zend-alloc">QuickHashIntHash::DO_NOT_USE_ZEND_ALLOC</varname>
<initializer>2</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashinthash.constants.hasher-no-hash">QuickHashIntHash::HASHER_NO_HASH</varname>
<initializer>256</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashinthash.constants.hasher-jenkins1">QuickHashIntHash::HASHER_JENKINS1</varname>
<initializer>512</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashinthash.constants.hasher-jenkins2">QuickHashIntHash::HASHER_JENKINS2</varname>
<initializer>1024</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">Методы</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.quickhashinthash')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ QuickHashIntHash constants -->
<section xml:id="quickhashinthash.constants">
&reftitle.constants;
<variablelist>
<varlistentry xml:id="quickhashinthash.constants.check-for-dupes">
<term><constant>QuickHashIntHash::CHECK_FOR_DUPES</constant></term>
<listitem>
<para>Если включено, то добавление повторяющихся элементов в набор
(с помощью add() или loadFromFile()) приведёт к отбрасыванию этих элементов.
Эта функциональность несколько замедляет работу, так что должен использоваться только
если действительно необходим.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashinthash.constants.do-not-use-zend-alloc">
<term><constant>QuickHashIntHash::DO_NOT_USE_ZEND_ALLOC</constant></term>
<listitem>
<para>Запрещает использование встроенного в PHP менеджера памяти для
внутренних структур. Если включена эта опция, то используемая память не
будет учитываться настройкой memory_limit.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashinthash.constants.hasher-no-hash">
<term><constant>QuickHashIntHash::HASHER_NO_HASH</constant></term>
<listitem>
<para>Указывает, что не нужно использовать функцию хеширования, а
вместо неё, для поиска индекса в цепочке, использовать модуль.
Это не быстрее обычного хеширования и порождает больше коллизий.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashinthash.constants.hasher-jenkins1">
<term><constant>QuickHashIntHash::HASHER_JENKINS1</constant></term>
<listitem>
<para>Хеширующая функция по умолчанию.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashinthash.constants.hasher-jenkins2">
<term><constant>QuickHashIntHash::HASHER_JENKINS2</constant></term>
<listitem>
<para>Другой хеширующий алгоритм.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
</partintro>
&reference.quickhash.entities.quickhashinthash;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,139 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 60ec2446182c3f45d16a13c0be0b18baf5a13a48 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="quickhashinthash.add" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>QuickHashIntHash::add</refname>
<refpurpose>Добавить элемент в хеш</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>QuickHashIntHash::add</methodname>
<methodparam><type>int</type><parameter>key</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
Добавляет элемент в хеш и возвращает &true; или &false; в зависимости от успешности операции.
По умолчанию, добавление происходит всегда, если при создании хеша не использовался флаг
QuickHashIntHash::CHECK_FOR_DUPES.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>key</parameter></term>
<listitem>
<para>
Ключ добавляемой записи.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>value</parameter></term>
<listitem>
<para>
Опциональное значение. Если не задано, то будет использоваться <literal>1</literal>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
В случае удачного добавления возвращает &true;. В случае неудачного - &false;.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Пример использования <function>QuickHashIntHash::add</function></title>
<programlisting role="php">
<![CDATA[
<?php
echo "without dupe checking\n";
$hash = new QuickHashIntHash( 1024 );
var_dump( $hash->exists( 4 ) );
var_dump( $hash->get( 4 ) );
var_dump( $hash->add( 4, 22 ) );
var_dump( $hash->exists( 4 ) );
var_dump( $hash->get( 4 ) );
var_dump( $hash->add( 4, 12 ) );
echo "\nwith dupe checking\n";
$hash = new QuickHashIntHash( 1024, QuickHashIntHash::CHECK_FOR_DUPES );
var_dump( $hash->exists( 4 ) );
var_dump( $hash->get( 4 ) );
var_dump( $hash->add( 4, 78 ) );
var_dump( $hash->exists( 4 ) );
var_dump( $hash->get( 4 ) );
var_dump( $hash->add( 4, 9 ) );
echo "\ndefault value\n";
var_dump( $hash->add( 5 ) );
var_dump( $hash->get( 5 ) );
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
without dupe checking
bool(false)
bool(false)
bool(true)
bool(true)
int(22)
bool(true)
with dupe checking
bool(false)
bool(false)
bool(true)
bool(true)
int(78)
bool(false)
default value
bool(true)
int(1)
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,156 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<phpdoc:classref xml:id="class.quickhashintset" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс QuickHashIntSet</title>
<titleabbrev>QuickHashIntSet</titleabbrev>
<partintro>
<!-- {{{ QuickHashIntSet intro -->
<section xml:id="quickhashintset.intro">
&reftitle.intro;
<para>
Класс-обёртка над набором целых чисел.
</para>
<para>
Классом реализуется интерфейс Iterator, что даёт возможность перебора
с помощью foreach. Порядок следования элементов не гарантируется.
</para>
</section>
<!-- }}} -->
<section xml:id="quickhashintset.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>QuickHashIntSet</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>QuickHashIntSet</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">Константы</classsynopsisinfo>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintset.constants.check-for-dupes">QuickHashIntSet::CHECK_FOR_DUPES</varname>
<initializer>1</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintset.constants.do-not-use-zend-alloc">QuickHashIntSet::DO_NOT_USE_ZEND_ALLOC</varname>
<initializer>2</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintset.constants.hasher-no-hash">QuickHashIntSet::HASHER_NO_HASH</varname>
<initializer>256</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintset.constants.hasher-jenkins1">QuickHashIntSet::HASHER_JENKINS1</varname>
<initializer>512</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintset.constants.hasher-jenkins2">QuickHashIntSet::HASHER_JENKINS2</varname>
<initializer>1024</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">Методы</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.quickhashintset')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ QuickHashIntSet constants -->
<section xml:id="quickhashintset.constants">
&reftitle.constants;
<variablelist>
<varlistentry xml:id="quickhashintset.constants.check-for-dupes">
<term><constant>QuickHashIntSet::CHECK_FOR_DUPES</constant></term>
<listitem>
<para>Если включено, то добавление повторяющихся элементов в набор
(с помощью add() или loadFromFile()) приведёт к отбрасыванию этих элементов.
Эта функциональность несколько замедляет работу, так что должен использоваться только
если действительно необходим.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintset.constants.do-not-use-zend-alloc">
<term><constant>QuickHashIntSet::DO_NOT_USE_ZEND_ALLOC</constant></term>
<listitem>
<para>Запрещает использование встроенного в PHP менеджера памяти для
внутренних структур. Если включена эта опция, то используемая память не
будет учитываться настройкой memory_limit.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintset.constants.hasher-no-hash">
<term><constant>QuickHashIntSet::HASHER_NO_HASH</constant></term>
<listitem>
<para>Указывает, что не нужно использовать функцию хеширования, а
вместо неё для поиска индекса в цепочке использовать модуль.
Это не быстрее обычного хеширования и порождает больше коллизий.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintset.constants.hasher-jenkins1">
<term><constant>QuickHashIntSet::HASHER_JENKINS1</constant></term>
<listitem>
<para>Хеширующая функция по умолчанию.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintset.constants.hasher-jenkins2">
<term><constant>QuickHashIntHash::HASHER_JENKINS2</constant></term>
<listitem>
<para>Другой хеширующий алгоритм.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
</partintro>
&reference.quickhash.entities.quickhashintset;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,157 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<phpdoc:classref xml:id="class.quickhashintstringhash" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс QuickHashIntStringHash</title>
<titleabbrev>QuickHashIntStringHash</titleabbrev>
<partintro>
<!-- {{{ QuickHashIntStringHash intro -->
<section xml:id="quickhashintstringhash.intro">
&reftitle.intro;
<para>
Класс-обёртка для хеш-таблицы с целочисленными ключами и значениями, являющимися
строками. Также реализует интерфейс ArrayAccess.
</para>
<para>
Классом реализуется интерфейс Iterator, что даёт возможность перебора
с помощью foreach. Порядок следования элементов не гарантируется.
</para>
</section>
<!-- }}} -->
<section xml:id="quickhashintstringhash.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>QuickHashIntStringHash</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>QuickHashIntStringHash</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">Константы</classsynopsisinfo>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintstringhash.constants.check-for-dupes">QuickHashIntStringHash::CHECK_FOR_DUPES</varname>
<initializer>1</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintstringhash.constants.do-not-use-zend-alloc">QuickHashIntStringHash::DO_NOT_USE_ZEND_ALLOC</varname>
<initializer>2</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintstringhash.constants.hasher-no-hash">QuickHashIntStringHash::HASHER_NO_HASH</varname>
<initializer>256</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintstringhash.constants.hasher-jenkins1">QuickHashIntStringHash::HASHER_JENKINS1</varname>
<initializer>512</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashintstringhash.constants.hasher-jenkins2">QuickHashIntStringHash::HASHER_JENKINS2</varname>
<initializer>1024</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">Методы</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.quickhashintstringhash')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ QuickHashIntStringHash constants -->
<section xml:id="quickhashintstringhash.constants">
&reftitle.constants;
<variablelist>
<varlistentry xml:id="quickhashintstringhash.constants.check-for-dupes">
<term><constant>QuickHashIntHash::CHECK_FOR_DUPES</constant></term>
<listitem>
<para>Если включено, то добавление повторяющихся элементов в набор
(с помощью add() или loadFromFile()) приведёт к отбрасыванию этих элементов.
Эта функциональность несколько замедляет работу, так что должен использоваться только
если действительно необходим.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintstringhash.constants.do-not-use-zend-alloc">
<term><constant>QuickHashIntHash::DO_NOT_USE_ZEND_ALLOC</constant></term>
<listitem>
<para>Запрещает использование встроенного в PHP менеджера памяти для
внутренних структур. Если включена эта опция, то используемая память не
будет учитываться настройкой memory_limit.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintstringhash.constants.hasher-no-hash">
<term><constant>QuickHashIntHash::HASHER_NO_HASH</constant></term>
<listitem>
<para>Указывает, что не нужно использовать функцию хеширования, а
вместо неё, для поиска индекса в цепочке, использовать модуль.
Это не быстрее обычного хеширования и порождает больше коллизий.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintstringhash.constants.hasher-jenkins1">
<term><constant>QuickHashIntHash::HASHER_JENKINS1</constant></term>
<listitem>
<para>Хеширующая функция по умолчанию.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashintstringhash.constants.hasher-jenkins2">
<term><constant>QuickHashIntHash::HASHER_JENKINS2</constant></term>
<listitem>
<para>Другой хеширующий алгоритм.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
</partintro>
&reference.quickhash.entities.quickhashintstringhash;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,116 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<phpdoc:classref xml:id="class.quickhashstringinthash" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс QuickHashStringIntHash</title>
<titleabbrev>QuickHashStringIntHash</titleabbrev>
<partintro>
<!-- {{{ QuickHashStringIntHash intro -->
<section xml:id="quickhashstringinthash.intro">
&reftitle.intro;
<para>
Класс-обёртка для хеш-таблицы со строковыми ключами и значениями, являющимися
целыми числами. Также реализует интерфейс ArrayAccess.
</para>
<para>
Классом реализуется интерфейс Iterator, что даёт возможность перебора
с помощью foreach. Порядок следования элементов не гарантируется.
</para>
</section>
<!-- }}} -->
<section xml:id="quickhashstringinthash.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>QuickHashStringIntHash</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>QuickHashStringIntHash</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">Константы</classsynopsisinfo>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashstringinthash.constants.check-for-dupes">QuickHashStringIntHash::CHECK_FOR_DUPES</varname>
<initializer>1</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>int</type>
<varname linkend="quickhashstringinthash.constants.do-not-use-zend-alloc">QuickHashStringIntHash::DO_NOT_USE_ZEND_ALLOC</varname>
<initializer>2</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">Методы</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.quickhashstringinthash')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ QuickHashStringIntHash constants -->
<section xml:id="quickhashstringinthash.constants">
&reftitle.constants;
<variablelist>
<varlistentry xml:id="quickhashstringinthash.constants.check-for-dupes">
<term><constant>QuickHashIntHash::CHECK_FOR_DUPES</constant></term>
<listitem>
<para>Если включено, то добавление повторяющихся элементов в набор
(с помощью add() или loadFromFile()) приведёт к отбрасыванию этих элементов.
Эта функциональность несколько замедляет работу, так что должен использоваться только
если действительно необходим.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="quickhashstringinthash.constants.do-not-use-zend-alloc">
<term><constant>QuickHashIntHash::DO_NOT_USE_ZEND_ALLOC</constant></term>
<listitem>
<para>Запрещает использование встроенного в PHP менеджера памяти для
внутренних структур. Если включена эта опция, то используемая память не
будет учитываться настройкой memory_limit.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
</partintro>
&reference.quickhash.entities.quickhashstringinthash;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9e53e696d11ac5db4b9f6f19e9aa4e9ed6aac6d9 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<reference xml:id="ref.quickhash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>&Functions; Quickhash</title>
&reference.quickhash.entities.functions;
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9e53e696d11ac5db4b9f6f19e9aa4e9ed6aac6d9 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
<chapter xml:id="quickhash.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.setup;
<section xml:id="quickhash.requirements">
&reftitle.required;
<para>
Модулю не требуются внешние библиотеки.
</para>
</section>
<section xml:id="quickhash.installation">
&reftitle.install;
<para>
&pecl.info;
<link xlink:href="&url.pecl.package;quickhash">&url.pecl.package;quickhash</link>
</para>
</section>
<section xml:id="quickhash.configuration">
&reftitle.runtime;
&no.config;
</section>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->