2024-10-20 23:03:17 +02:00
|
|
|
<?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="_pile_8c" xml:lang="en-US">
|
|
|
|
<title>src/util/pile.c File Reference</title>
|
|
|
|
<indexterm><primary>src/util/pile.c</primary></indexterm>
|
|
|
|
<para>
|
|
|
|
|
2024-10-22 23:58:04 +02:00
|
|
|
<para>simple pile </para>
|
2024-10-20 23:03:17 +02:00
|
|
|
|
|
|
|
</para>
|
2024-10-25 22:12:02 +02:00
|
|
|
<programlisting linenumbering="unnumbered">#include "../../include/util.h"<?linebreak?></programlisting>Include dependency graph for pile.c:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
2024-10-27 04:18:58 +01:00
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../d2/d08/pile_8c__incl.svg"></imagedata>
|
2024-10-25 22:12:02 +02:00
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
|
|
|
<simplesect>
|
2024-10-20 23:03:17 +02:00
|
|
|
<title>Functions </title>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>int <link linkend="_pile_8c_1ae7f894b6d7e9fb168fa601fdfd8345ec">util_pile_push</link> (<link linkend="_structpile">pile</link> **p, int value)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem><para>int <link linkend="_pile_8c_1a0e06a04510db610ca0097c34dd1df8e8">util_pile_pop</link> (<link linkend="_structpile">pile</link> **p)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem><para>void <link linkend="_pile_8c_1aaed89bf98ca82bcc01de237563c84e4e">util_pile_clear</link> (<link linkend="_structpile">pile</link> **p)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem><para>int <link linkend="_pile_8c_1afbb61183d866a834bdf9cae2be6c84f5">util_pile_length</link> (<link linkend="_structpile">pile</link> *p)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem><para>void <link linkend="_pile_8c_1adfb08d2ce5a4ad53e4d0b873e993cd91">util_pile_view</link> (<link linkend="_structpile">pile</link> *p)</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</simplesect>
|
|
|
|
<section>
|
|
|
|
<title>Detailed Description</title>
|
|
|
|
|
2024-10-22 23:58:04 +02:00
|
|
|
<para>simple pile </para>
|
2024-10-20 23:03:17 +02:00
|
|
|
|
|
|
|
<para>This file is part of Gem-graph. It implements a simple pile functions. </para>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>Function Documentation</title>
|
|
|
|
<anchor xml:id="_pile_8c_1aaed89bf98ca82bcc01de237563c84e4e"/><section>
|
|
|
|
<title>util_pile_clear()</title>
|
|
|
|
<indexterm><primary>util_pile_clear</primary><secondary>pile.c</secondary></indexterm>
|
|
|
|
<indexterm><primary>pile.c</primary><secondary>util_pile_clear</secondary></indexterm>
|
|
|
|
<para><computeroutput>void util_pile_clear (<link linkend="_structpile">pile</link> ** p)</computeroutput></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>**p</entry><entry>
|
|
|
|
<para></para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
</para>
|
2024-10-27 04:18:58 +01:00
|
|
|
Here is the caller graph for this function:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../db/d08/pile_8c_aaed89bf98ca82bcc01de237563c84e4e_icgraph.svg"></imagedata>
|
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
2024-10-20 23:03:17 +02:00
|
|
|
</section>
|
|
|
|
<anchor xml:id="_pile_8c_1afbb61183d866a834bdf9cae2be6c84f5"/><section>
|
|
|
|
<title>util_pile_length()</title>
|
|
|
|
<indexterm><primary>util_pile_length</primary><secondary>pile.c</secondary></indexterm>
|
|
|
|
<indexterm><primary>pile.c</primary><secondary>util_pile_length</secondary></indexterm>
|
|
|
|
<para><computeroutput>int util_pile_length (<link linkend="_structpile">pile</link> * p)</computeroutput></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>**p</entry><entry></entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
<formalpara><title>Returns</title>
|
|
|
|
|
|
|
|
<para>length </para>
|
|
|
|
</formalpara>
|
|
|
|
</para>
|
2024-10-27 04:18:58 +01:00
|
|
|
Here is the caller graph for this function:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../db/d08/pile_8c_afbb61183d866a834bdf9cae2be6c84f5_icgraph.svg"></imagedata>
|
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
2024-10-20 23:03:17 +02:00
|
|
|
</section>
|
|
|
|
<anchor xml:id="_pile_8c_1a0e06a04510db610ca0097c34dd1df8e8"/><section>
|
|
|
|
<title>util_pile_pop()</title>
|
|
|
|
<indexterm><primary>util_pile_pop</primary><secondary>pile.c</secondary></indexterm>
|
|
|
|
<indexterm><primary>pile.c</primary><secondary>util_pile_pop</secondary></indexterm>
|
|
|
|
<para><computeroutput>int util_pile_pop (<link linkend="_structpile">pile</link> ** p)</computeroutput></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>**p</entry><entry></entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
<formalpara><title>Returns</title>
|
|
|
|
|
|
|
|
<para>value </para>
|
|
|
|
</formalpara>
|
|
|
|
</para>
|
2024-10-27 04:18:58 +01:00
|
|
|
Here is the caller graph for this function:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../db/d08/pile_8c_a0e06a04510db610ca0097c34dd1df8e8_icgraph.svg"></imagedata>
|
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
2024-10-20 23:03:17 +02:00
|
|
|
</section>
|
|
|
|
<anchor xml:id="_pile_8c_1ae7f894b6d7e9fb168fa601fdfd8345ec"/><section>
|
|
|
|
<title>util_pile_push()</title>
|
|
|
|
<indexterm><primary>util_pile_push</primary><secondary>pile.c</secondary></indexterm>
|
|
|
|
<indexterm><primary>pile.c</primary><secondary>util_pile_push</secondary></indexterm>
|
|
|
|
<para><computeroutput>int util_pile_push (<link linkend="_structpile">pile</link> ** p, int value)</computeroutput></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>**p</entry><entry>
|
|
|
|
<para></para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>value</entry><entry></entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
<formalpara><title>Returns</title>
|
|
|
|
|
|
|
|
<para>value </para>
|
|
|
|
</formalpara>
|
|
|
|
</para>
|
2024-10-27 04:18:58 +01:00
|
|
|
Here is the caller graph for this function:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../db/d08/pile_8c_ae7f894b6d7e9fb168fa601fdfd8345ec_icgraph.svg"></imagedata>
|
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
2024-10-20 23:03:17 +02:00
|
|
|
</section>
|
|
|
|
<anchor xml:id="_pile_8c_1adfb08d2ce5a4ad53e4d0b873e993cd91"/><section>
|
|
|
|
<title>util_pile_view()</title>
|
|
|
|
<indexterm><primary>util_pile_view</primary><secondary>pile.c</secondary></indexterm>
|
|
|
|
<indexterm><primary>pile.c</primary><secondary>util_pile_view</secondary></indexterm>
|
|
|
|
<para><computeroutput>void util_pile_view (<link linkend="_structpile">pile</link> * p)</computeroutput></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>**p</entry><entry>
|
|
|
|
<para></para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
</para>
|
2024-10-27 04:18:58 +01:00
|
|
|
Here is the call graph for this function:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../db/d08/pile_8c_adfb08d2ce5a4ad53e4d0b873e993cd91_cgraph.svg"></imagedata>
|
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
|
|
|
Here is the caller graph for this function:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../db/d08/pile_8c_adfb08d2ce5a4ad53e4d0b873e993cd91_icgraph.svg"></imagedata>
|
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
2024-10-20 23:03:17 +02:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</section>
|