⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glib-double-ended-queues.html

📁 glid编写实例
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</table></div></div><hr><div class="refsect2" lang="en"><a name="id3128856"></a><h3><a name="g-queue-pop-tail-link"></a>g_queue_pop_tail_link ()</h3><a class="indexterm" name="id3128867"></a><pre class="programlisting"><a href="glib-Doubly-Linked-Lists.html#GList">GList</a>*      g_queue_pop_tail_link           (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue);</pre><p>Removes the last element of the queue.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <a href="glib-Double-ended-Queues.html#GQueue"><span class="type">GQueue</span></a>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the <a href="glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> element at the tail of the queue, or <code class="literal">NULL</code> if the queue  is empty.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3128950"></a><h3><a name="g-queue-pop-nth-link"></a>g_queue_pop_nth_link ()</h3><a class="indexterm" name="id3128961"></a><pre class="programlisting"><a href="glib-Doubly-Linked-Lists.html#GList">GList</a>*      g_queue_pop_nth_link            (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue,                                             <a href="glib-Basic-Types.html#guint">guint</a> n);</pre><p>Removes and returns the link at the given position.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <a href="glib-Double-ended-Queues.html#GQueue"><span class="type">GQueue</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>n</code></em>&#160;:</span></td><td> the link's position</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The <em class="parameter"><code>n</code></em>'th link, or <code class="literal">NULL</code> if <em class="parameter"><code>n</code></em> is off the end of <em class="parameter"><code>queue</code></em>.</td></tr></tbody></table></div><p>Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3129079"></a><h3><a name="g-queue-peek-head-link"></a>g_queue_peek_head_link ()</h3><a class="indexterm" name="id3129089"></a><pre class="programlisting"><a href="glib-Doubly-Linked-Lists.html#GList">GList</a>*      g_queue_peek_head_link          (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue);</pre><p>Returns the first link in <em class="parameter"><code>queue</code></em></p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <a href="glib-Double-ended-Queues.html#GQueue"><span class="type">GQueue</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the first link in <em class="parameter"><code>queue</code></em>, or <code class="literal">NULL</code> if <em class="parameter"><code>queue</code></em> is empty</td></tr></tbody></table></div><p>Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3129184"></a><h3><a name="g-queue-peek-tail-link"></a>g_queue_peek_tail_link ()</h3><a class="indexterm" name="id3129195"></a><pre class="programlisting"><a href="glib-Doubly-Linked-Lists.html#GList">GList</a>*      g_queue_peek_tail_link          (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue);</pre><p>Returns the last link <em class="parameter"><code>queue</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <a href="glib-Double-ended-Queues.html#GQueue"><span class="type">GQueue</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the last link in <em class="parameter"><code>queue</code></em>, or <code class="literal">NULL</code> if <em class="parameter"><code>queue</code></em> is empty</td></tr></tbody></table></div><p>Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3129292"></a><h3><a name="g-queue-peek-nth-link"></a>g_queue_peek_nth_link ()</h3><a class="indexterm" name="id3129303"></a><pre class="programlisting"><a href="glib-Doubly-Linked-Lists.html#GList">GList</a>*      g_queue_peek_nth_link           (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue,                                             <a href="glib-Basic-Types.html#guint">guint</a> n);</pre><p>Returns the link at the given position</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <a href="glib-Double-ended-Queues.html#GQueue"><span class="type">GQueue</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>n</code></em>&#160;:</span></td><td> the position of the link</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The link at the <em class="parameter"><code>n</code></em>'th position, or <code class="literal">NULL</code> if <em class="parameter"><code>n</code></em> is off theend of the list</td></tr></tbody></table></div><p>Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3129415"></a><h3><a name="g-queue-link-index"></a>g_queue_link_index ()</h3><a class="indexterm" name="id3129426"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gint">gint</a>        g_queue_link_index              (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue,                                             <a href="glib-Doubly-Linked-Lists.html#GList">GList</a> *link_);</pre><p>Returns the position of <em class="parameter"><code>link_</code></em> in <em class="parameter"><code>queue</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <span class="type">Gqueue</span></td></tr><tr><td><span class="term"><em class="parameter"><code>link_</code></em>&#160;:</span></td><td> A <a href="glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> link</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The position of <em class="parameter"><code>link_</code></em>, or -1 if the link isnot part of <em class="parameter"><code>queue</code></em></td></tr></tbody></table></div><p>Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3129551"></a><h3><a name="g-queue-unlink"></a>g_queue_unlink ()</h3><a class="indexterm" name="id3129562"></a><pre class="programlisting">void        g_queue_unlink                  (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue,                                             <a href="glib-Doubly-Linked-Lists.html#GList">GList</a> *link_);</pre><p>Unlinks <em class="parameter"><code>link_</code></em> so that it will no longer be part of <em class="parameter"><code>queue</code></em>. The link isnot freed.</p><p><em class="parameter"><code>link_</code></em> must be part of <em class="parameter"><code>queue</code></em>,</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <a href="glib-Double-ended-Queues.html#GQueue"><span class="type">GQueue</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>link_</code></em>&#160;:</span></td><td> a <a href="glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> link that <span class="emphasis"><em>must</em></span> be part of <em class="parameter"><code>queue</code></em></td></tr></tbody></table></div><p>Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3129690"></a><h3><a name="g-queue-delete-link"></a>g_queue_delete_link ()</h3><a class="indexterm" name="id3129701"></a><pre class="programlisting">void        g_queue_delete_link             (<a href="glib-Double-ended-Queues.html#GQueue">GQueue</a> *queue,                                             <a href="glib-Doubly-Linked-Lists.html#GList">GList</a> *link_);</pre><p>Removes <em class="parameter"><code>link_</code></em> from <em class="parameter"><code>queue</code></em> and frees it.</p><p><em class="parameter"><code>link_</code></em> must be part of <em class="parameter"><code>queue</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>queue</code></em>&#160;:</span></td><td> a <a href="glib-Double-ended-Queues.html#GQueue"><span class="type">GQueue</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>link_</code></em>&#160;:</span></td><td> a <a href="glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> link that <span class="emphasis"><em>must</em></span> be part of <em class="parameter"><code>queue</code></em></td></tr></tbody></table></div><p>Since  2.4</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="glib-Singly-Linked-Lists.html"><b>&lt;&lt;&#160;Singly-Linked Lists</b></a></td><td align="right"><a accesskey="n" href="glib-Trash-Stacks.html"><b>Trash Stacks&#160;&gt;&gt;</b></a></td></tr></table></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -