<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_qsort__functions_8h">
<title>/Users/bernard/b20/bsoft/include/qsort_functions.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/include/qsort_functions.h</primary></indexterm>
<para>

<para>Header file for utility functions for use in qsort calls. </para>
 
</para>
<simplesect>
    <title>Classes    </title>
        <itemizedlist>
            <listitem><para>struct <link linkend="_structint__float">int_float</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_qsort__functions_8h_1ae3458922c6ef7159b1ee822aa7d6aafc">QsortSmallToLargeFloat</link> (const void *x, const void *y)</para>

<para>Utility function for sorting floating point values in qsort. </para>
</listitem>
            <listitem><para>int <link linkend="_qsort__functions_8h_1a6ddffa7ce0a86560735ccb8cc1e2c991">QsortLargeToSmallFloat</link> (const void *x, const void *y)</para>

<para>Utility function for sorting floating point values in qsort. </para>
</listitem>
            <listitem><para>int <link linkend="_qsort__functions_8h_1a6e8101c4a5f847bfe3aa01766a4d0c68">QsortSmallToLargeDouble</link> (const void *x, const void *y)</para>

<para>Utility function for sorting double precision floating point values in qsort. </para>
</listitem>
            <listitem><para>int <link linkend="_qsort__functions_8h_1a3c0da044cb72772fa586f0a5f703da14">QsortLargeToSmallDouble</link> (const void *x, const void *y)</para>

<para>Utility function for sorting double precision floating point values in qsort. </para>
</listitem>
            <listitem><para>int <link linkend="_qsort__functions_8h_1a980fb39717a6126c2eb254d22895bd50">QsortSmallToLargeIntFloat</link> (const void *x, const void *y)</para>

<para>Utility function for sorting int float pairs in qsort. </para>
</listitem>
            <listitem><para>int <link linkend="_qsort__functions_8h_1a23848a83964b5ac677a6988593b2ff64">QsortLargeToSmallIntFloat</link> (const void *x, const void *y)</para>

<para>Utility function for sorting int float pairs in qsort. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Header file for utility functions for use in qsort calls. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 20010516 </para>

<para>Modified: 20100724 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_qsort__functions_8h_1a3c0da044cb72772fa586f0a5f703da14"/>    <section>
    <title>QsortLargeToSmallDouble()</title>
<indexterm><primary>QsortLargeToSmallDouble</primary><secondary>qsort_functions.h</secondary></indexterm>
<indexterm><primary>qsort_functions.h</primary><secondary>QsortLargeToSmallDouble</secondary></indexterm>
<para><computeroutput>int QsortLargeToSmallDouble (const void * x, const void * y)</computeroutput></para><para>

<para>Utility function for sorting double precision floating point values in qsort. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*x</entry>
                                <entry>
<para>first floating point value. </para>
</entry>
                            </row>
                            <row>
                                <entry>*y</entry>
                                <entry>
<para>second floating point value. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>-1 if x &gt; y and 1 otherwise. </para>
</formalpara>
</para>
<para>
Definition at line 59 of file qsort_functions.cpp.</para>
    </section><anchor xml:id="_qsort__functions_8h_1a6ddffa7ce0a86560735ccb8cc1e2c991"/>    <section>
    <title>QsortLargeToSmallFloat()</title>
<indexterm><primary>QsortLargeToSmallFloat</primary><secondary>qsort_functions.h</secondary></indexterm>
<indexterm><primary>qsort_functions.h</primary><secondary>QsortLargeToSmallFloat</secondary></indexterm>
<para><computeroutput>int QsortLargeToSmallFloat (const void * x, const void * y)</computeroutput></para><para>

<para>Utility function for sorting floating point values in qsort. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*x</entry>
                                <entry>
<para>first floating point value. </para>
</entry>
                            </row>
                            <row>
                                <entry>*y</entry>
                                <entry>
<para>second floating point value. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>-1 if x &gt; y and 1 otherwise. </para>
</formalpara>
</para>
<para>
Definition at line 31 of file qsort_functions.cpp.</para>
    </section><anchor xml:id="_qsort__functions_8h_1a23848a83964b5ac677a6988593b2ff64"/>    <section>
    <title>QsortLargeToSmallIntFloat()</title>
<indexterm><primary>QsortLargeToSmallIntFloat</primary><secondary>qsort_functions.h</secondary></indexterm>
<indexterm><primary>qsort_functions.h</primary><secondary>QsortLargeToSmallIntFloat</secondary></indexterm>
<para><computeroutput>int QsortLargeToSmallIntFloat (const void * x, const void * y)</computeroutput></para><para>

<para>Utility function for sorting int float pairs in qsort. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*x</entry>
                                <entry>
<para>first pair. </para>
</entry>
                            </row>
                            <row>
                                <entry>*y</entry>
                                <entry>
<para>second pair. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>-1 if x &gt; y, 1 if x &lt; y, and 0 otherwise. </para>
</formalpara>
</para>
<para>
Definition at line 89 of file qsort_functions.cpp.</para>
    </section><anchor xml:id="_qsort__functions_8h_1a6e8101c4a5f847bfe3aa01766a4d0c68"/>    <section>
    <title>QsortSmallToLargeDouble()</title>
<indexterm><primary>QsortSmallToLargeDouble</primary><secondary>qsort_functions.h</secondary></indexterm>
<indexterm><primary>qsort_functions.h</primary><secondary>QsortSmallToLargeDouble</secondary></indexterm>
<para><computeroutput>int QsortSmallToLargeDouble (const void * x, const void * y)</computeroutput></para><para>

<para>Utility function for sorting double precision floating point values in qsort. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*x</entry>
                                <entry>
<para>first floating point value. </para>
</entry>
                            </row>
                            <row>
                                <entry>*y</entry>
                                <entry>
<para>second floating point value. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>-1 if x &lt; y and 1 otherwise. </para>
</formalpara>
</para>
<para>
Definition at line 45 of file qsort_functions.cpp.</para>
    </section><anchor xml:id="_qsort__functions_8h_1ae3458922c6ef7159b1ee822aa7d6aafc"/>    <section>
    <title>QsortSmallToLargeFloat()</title>
<indexterm><primary>QsortSmallToLargeFloat</primary><secondary>qsort_functions.h</secondary></indexterm>
<indexterm><primary>qsort_functions.h</primary><secondary>QsortSmallToLargeFloat</secondary></indexterm>
<para><computeroutput>int QsortSmallToLargeFloat (const void * x, const void * y)</computeroutput></para><para>

<para>Utility function for sorting floating point values in qsort. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*x</entry>
                                <entry>
<para>first floating point value. </para>
</entry>
                            </row>
                            <row>
                                <entry>*y</entry>
                                <entry>
<para>second floating point value. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>-1 if x &lt; y and 1 otherwise. </para>
</formalpara>
</para>
<para>
Definition at line 17 of file qsort_functions.cpp.</para>
    </section><anchor xml:id="_qsort__functions_8h_1a980fb39717a6126c2eb254d22895bd50"/>    <section>
    <title>QsortSmallToLargeIntFloat()</title>
<indexterm><primary>QsortSmallToLargeIntFloat</primary><secondary>qsort_functions.h</secondary></indexterm>
<indexterm><primary>qsort_functions.h</primary><secondary>QsortSmallToLargeIntFloat</secondary></indexterm>
<para><computeroutput>int QsortSmallToLargeIntFloat (const void * x, const void * y)</computeroutput></para><para>

<para>Utility function for sorting int float pairs in qsort. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*x</entry>
                                <entry>
<para>first pair. </para>
</entry>
                            </row>
                            <row>
                                <entry>*y</entry>
                                <entry>
<para>second pair. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>-1 if x &lt; y, 1 if x &gt; y, and 0 otherwise. </para>
</formalpara>
</para>
<para>
Definition at line 73 of file qsort_functions.cpp.</para>
</section>
</section>
</section>
