mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-20 19:08:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334762 c90b9560-bf6c-de11-be94-00142212c4b1
78 lines
2.1 KiB
XML
78 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<refentry xml:id="splpriorityqueue.compare" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>SplPriorityQueue::compare</refname>
|
|
<refpurpose>Compare priorities in order to place elements correctly in the heap while sifting up.</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier> <type>int</type><methodname>SplPriorityQueue::compare</methodname>
|
|
<methodparam><type>mixed</type><parameter>priority1</parameter></methodparam>
|
|
<methodparam><type>mixed</type><parameter>priority2</parameter></methodparam>
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
Compare <parameter>priority1</parameter> with <parameter>priority2</parameter>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>priority1</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
The priority of the first node being compared.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>priority2</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
The priority of the second node being compared.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Result of the comparison, positive integer if <parameter>priority1</parameter> is greater than <parameter>priority2</parameter>, 0 if they are equal, negative integer otherwise.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Multiple elements with the same priority will get dequeued in no particular order.
|
|
</para>
|
|
</note>
|
|
</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
|
|
-->
|