亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? glib-relations-and-tuples.html

?? 最新gtk中文資料集
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>Relations and Tuples</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GLib Reference Manual"><link rel="up" href="glib-data-types.html" title="GLib Data Types"><link rel="prev" href="glib-Datasets.html" title="Datasets"><link rel="next" href="glib-Caches.html" title="Caches"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="glib.html" title="GLib Overview"><link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals"><link rel="chapter" href="glib-core.html" title="GLib Core Application Support"><link rel="chapter" href="glib-utilities.html" title="GLib Utilities"><link rel="chapter" href="glib-data-types.html" title="GLib Data Types"><link rel="chapter" href="tools.html" title="GLib Tools"><link rel="index" href="ix01.html" title="Index"><link rel="index" href="ix02.html" title="Index of deprecated symbols"><link rel="index" href="ix03.html" title="Index of new symbols in 2.2"><link rel="index" href="ix04.html" title="Index of new symbols in 2.4"><link rel="index" href="ix05.html" title="Index of new symbols in 2.6"><link rel="index" href="ix06.html" title="Index of new symbols in 2.8"><link rel="index" href="ix07.html" title="Index of new symbols in 2.10"><link rel="index" href="ix08.html" title="Index of new symbols in 2.12"><link rel="index" href="ix09.html" title="Index of new symbols in 2.14"><link rel="index" href="ix10.html" title="Index of new symbols in 2.16"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="glib-Datasets.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="glib-data-types.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GLib Reference Manual</th><td><a accesskey="n" href="glib-Caches.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id3361553" class="shortcut">Top</a>                  &#160;|&#160;                  <a href="#id3361920" class="shortcut">Description</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="glib-Relations-and-Tuples"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id3361553"></a><span class="refentrytitle">Relations and Tuples</span></h2><p>Relations and Tuples &#8212; tables of data which can be indexed on any number of fields</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include &lt;glib.h&gt;                    <a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a>;<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a>*          <a class="link" href="glib-Relations-and-Tuples.html#g-relation-new">g_relation_new</a>                      (<a class="link" href="glib-Basic-Types.html#gint">gint</a> fields);void                <a class="link" href="glib-Relations-and-Tuples.html#g-relation-index">g_relation_index</a>                    (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> field,                                                         <a class="link" href="glib-Hash-Tables.html#GHashFunc">GHashFunc</a> hash_func,                                                         <a class="link" href="glib-Hash-Tables.html#GEqualFunc">GEqualFunc</a> key_equal_func);void                <a class="link" href="glib-Relations-and-Tuples.html#g-relation-insert">g_relation_insert</a>                   (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         ...);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Relations-and-Tuples.html#g-relation-exists">g_relation_exists</a>                   (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         ...);<a class="link" href="glib-Basic-Types.html#gint">gint</a>                <a class="link" href="glib-Relations-and-Tuples.html#g-relation-count">g_relation_count</a>                    (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         <a class="link" href="glib-Basic-Types.html#gconstpointer">gconstpointer</a> key,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> field);<a class="link" href="glib-Relations-and-Tuples.html#GTuples">GTuples</a>*            <a class="link" href="glib-Relations-and-Tuples.html#g-relation-select">g_relation_select</a>                   (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         <a class="link" href="glib-Basic-Types.html#gconstpointer">gconstpointer</a> key,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> field);<a class="link" href="glib-Basic-Types.html#gint">gint</a>                <a class="link" href="glib-Relations-and-Tuples.html#g-relation-delete">g_relation_delete</a>                   (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         <a class="link" href="glib-Basic-Types.html#gconstpointer">gconstpointer</a> key,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> field);void                <a class="link" href="glib-Relations-and-Tuples.html#g-relation-destroy">g_relation_destroy</a>                  (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation);void                <a class="link" href="glib-Relations-and-Tuples.html#g-relation-print">g_relation_print</a>                    (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation);                    <a class="link" href="glib-Relations-and-Tuples.html#GTuples">GTuples</a>;void                <a class="link" href="glib-Relations-and-Tuples.html#g-tuples-destroy">g_tuples_destroy</a>                    (<a class="link" href="glib-Relations-and-Tuples.html#GTuples">GTuples</a> *tuples);<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Relations-and-Tuples.html#g-tuples-index">g_tuples_index</a>                      (<a class="link" href="glib-Relations-and-Tuples.html#GTuples">GTuples</a> *tuples,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> index_,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> field);</pre></div><div class="refsect1" lang="en"><a name="id3361920"></a><h2>Description</h2><p>A <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a> is a table of data which can be indexed on any number of fields,rather like simple database tables. A <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a> contains a number ofrecords, called tuples. Each record contains a number of fields.Records are not ordered, so it is not possible to find the record at aparticular index.</p><p>Note that <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a> tables are currently limited to 2 fields.</p><p>To create a GRelation, use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-new"><code class="function">g_relation_new()</code></a>.</p><p>To specify which fields should be indexed, use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-index"><code class="function">g_relation_index()</code></a>.Note that this must be called before any tuples are added to the <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.</p><p>To add records to a <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a> use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-insert"><code class="function">g_relation_insert()</code></a>.</p><p>To determine if a given record appears in a <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>, use<a class="link" href="glib-Relations-and-Tuples.html#g-relation-exists"><code class="function">g_relation_exists()</code></a>. Note that fields are compared directly, so pointersmust point to the exact same position (i.e. different copies of the samestring will not match.)</p><p>To count the number of records which have a particular value in a givenfield, use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-count"><code class="function">g_relation_count()</code></a>.</p><p>To get all the records which have a particular value in a given field,use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-select"><code class="function">g_relation_select()</code></a>. To access fields of the resulting records,use <a class="link" href="glib-Relations-and-Tuples.html#g-tuples-index"><code class="function">g_tuples_index()</code></a>. To free the resulting records use <a class="link" href="glib-Relations-and-Tuples.html#g-tuples-destroy"><code class="function">g_tuples_destroy()</code></a>.</p><p>To delete all records which have a particular value in a given field,use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-delete"><code class="function">g_relation_delete()</code></a>.</p><p>To destroy the <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>, use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-destroy"><code class="function">g_relation_destroy()</code></a>.</p><p>To help debug <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a> objects, use <a class="link" href="glib-Relations-and-Tuples.html#g-relation-print"><code class="function">g_relation_print()</code></a>.</p></div><div class="refsect1" lang="en"><a name="id3362164"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3362175"></a><h3><a name="GRelation"></a>GRelation</h3><a class="indexterm" name="id3362187"></a><pre class="programlisting">typedef struct _GRelation GRelation;</pre><p>The <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a> struct is an opaque data structure to represent a<a class="link" href="glib-Relations-and-Tuples.html" title="Relations and Tuples">Relation</a>.It should only be accessed via the following functions.</p></div><hr><div class="refsect2" lang="en"><a name="id3362221"></a><h3><a name="g-relation-new"></a>g_relation_new ()</h3><a class="indexterm" name="id3362233"></a><pre class="programlisting"><a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a>*          g_relation_new                      (<a class="link" href="glib-Basic-Types.html#gint">gint</a> fields);</pre><p>Creates a new <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a> with the given number of fields.Note that currently the number of fields must be 2.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>fields</code></em>&#160;:</span></p></td><td>the number of fields.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a new <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3362308"></a><h3><a name="g-relation-index"></a>g_relation_index ()</h3><a class="indexterm" name="id3362321"></a><pre class="programlisting">void                g_relation_index                    (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> field,                                                         <a class="link" href="glib-Hash-Tables.html#GHashFunc">GHashFunc</a> hash_func,                                                         <a class="link" href="glib-Hash-Tables.html#GEqualFunc">GEqualFunc</a> key_equal_func);</pre><p>Creates an index on the given field.Note that this must be called before any records are added to the <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>relation</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>field</code></em>&#160;:</span></p></td><td>the field to index, counting from 0.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>hash_func</code></em>&#160;:</span></p></td><td>a function to produce a hash value from the field data.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>key_equal_func</code></em>&#160;:</span></p></td><td>a function to compare two values of the given field.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3362452"></a><h3><a name="g-relation-insert"></a>g_relation_insert ()</h3><a class="indexterm" name="id3362465"></a><pre class="programlisting">void                g_relation_insert                   (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         ...);</pre><p>Inserts a record into a <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>relation</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></p></td><td>the fields of the record to add. These must match the number offields in the <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>, and of type <a class="link" href="glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> or <a class="link" href="glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3362567"></a><h3><a name="g-relation-exists"></a>g_relation_exists ()</h3><a class="indexterm" name="id3362580"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_relation_exists                   (<a class="link" href="glib-Relations-and-Tuples.html#GRelation">GRelation</a> *relation,                                                         ...);</pre><p>Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a record with the given values exists in a <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.Note that the values are compared directly, so that, for example, twocopies of the same string will not match.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>relation</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></p></td><td>the fields of the record to compare. The number must match thenumber of fields in the <a class="link" href="glib-Relations-and-Tuples.html#GRelation"><span class="type">GRelation</span></a>.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91一区一区三区| 亚洲自拍偷拍av| 大陆成人av片| 国产精品夫妻自拍| 99re8在线精品视频免费播放| 日本一区二区视频在线观看| 成人av资源在线观看| 亚洲视频电影在线| 欧美日韩国产高清一区二区| 日韩福利电影在线观看| 日韩精品资源二区在线| 国产成人在线视频网站| 中文字幕日本乱码精品影院| 在线观看av一区二区| 日韩电影在线一区二区三区| 久久久久久亚洲综合| 99精品国产视频| 日韩主播视频在线| 欧美极品少妇xxxxⅹ高跟鞋 | 91福利在线免费观看| 亚洲国产精品视频| 亚洲精品一线二线三线无人区| 国产**成人网毛片九色 | 日韩欧美国产三级电影视频| 国产麻豆精品视频| 亚洲欧美日韩电影| 精品日韩在线一区| 色偷偷久久一区二区三区| 青草av.久久免费一区| 国产精品嫩草影院av蜜臀| 欧美日韩免费一区二区三区视频| 精品亚洲国产成人av制服丝袜| 国产精品久久久久久久久免费樱桃| 欧美综合在线视频| 国产精品自拍三区| 日日摸夜夜添夜夜添精品视频| 久久久91精品国产一区二区三区| 色94色欧美sute亚洲线路一久| 久久精品99国产国产精| 一区二区三区在线观看网站| 精品国内片67194| 在线观看免费亚洲| 国产成人精品免费| 男人操女人的视频在线观看欧美 | 欧美浪妇xxxx高跟鞋交| 成人小视频免费在线观看| 欧美aaaaaa午夜精品| 亚洲精品成人少妇| 国产精品天美传媒| 久久综合久久综合久久综合| 欧美日韩国产另类不卡| 一本色道久久综合精品竹菊| 九九视频精品免费| 日本午夜一本久久久综合| 亚洲伦理在线精品| 国产精品久久久久久福利一牛影视| 日韩欧美在线观看一区二区三区| 欧美在线免费观看亚洲| 波多野结衣在线一区| 国产精品综合一区二区三区| 男男视频亚洲欧美| 亚洲福利视频一区| 亚洲午夜精品网| 亚洲免费在线播放| 日韩伦理电影网| 国产精品久久久久9999吃药| 国产亚洲污的网站| 久久久99精品久久| 国产三级精品在线| 国产欧美精品区一区二区三区| 2021久久国产精品不只是精品| 欧美一区二区三区视频在线| 欧美日韩美少妇| 欧美美女一区二区在线观看| 色婷婷久久综合| 色狠狠色狠狠综合| 欧美色综合久久| 欧美福利一区二区| 日韩美女一区二区三区四区| 日韩欧美一级特黄在线播放| 日韩欧美国产三级| 精品剧情在线观看| 久久精品一区二区三区av| 久久久噜噜噜久久人人看| 久久日一线二线三线suv| 精品久久一区二区| 久久久久9999亚洲精品| 亚洲国产精品激情在线观看| 国产日韩精品久久久| 中文子幕无线码一区tr| 亚洲精品视频在线观看网站| 国产资源在线一区| 激情深爱一区二区| 成人精品一区二区三区四区| 99久久婷婷国产综合精品| 一本久久a久久免费精品不卡| 欧美在线观看视频在线| 6080国产精品一区二区| 欧美成人在线直播| 国产精品青草久久| 亚洲一区影音先锋| 久99久精品视频免费观看| 国产成人精品免费网站| 欧洲一区二区三区在线| 日韩一级完整毛片| 国产人久久人人人人爽| 亚洲精品你懂的| 毛片av一区二区| 成人永久aaa| 777久久久精品| 欧美激情一区不卡| 视频一区二区中文字幕| 国产一区二区伦理| 亚洲男同1069视频| 天天色综合成人网| 久久99国产精品久久99| 国产成人在线观看| 欧美性猛片aaaaaaa做受| 久久这里只精品最新地址| 亚洲美女视频在线观看| 久草精品在线观看| 欧美在线综合视频| 国产日产精品一区| 无码av免费一区二区三区试看| 国产精品18久久久| 欧美狂野另类xxxxoooo| 国产精品午夜免费| 轻轻草成人在线| 日本精品一区二区三区四区的功能| 欧美一区二区三区视频免费播放| 国产精品美女久久久久av爽李琼| 日韩电影在线观看电影| 91丝袜国产在线播放| 精品国产3级a| 五月天丁香久久| 91论坛在线播放| 欧美激情一区二区三区四区| 日本亚洲欧美天堂免费| 日本久久一区二区三区| 天天色综合天天| 91玉足脚交白嫩脚丫在线播放| 欧美成人一区二区| 五月婷婷欧美视频| 色婷婷av一区二区三区软件| 日本一区二区三区免费乱视频| 日本欧美一区二区三区乱码| 在线视频观看一区| 亚洲欧洲日本在线| 国产精品亚洲成人| 欧美成人精品二区三区99精品| 亚洲午夜一区二区三区| 99久久er热在这里只有精品15| 久久久综合视频| 久久不见久久见免费视频1| 欧美精品123区| 亚洲成av人**亚洲成av**| 色综合天天视频在线观看| 日本一区二区三区四区在线视频| 国产自产高清不卡| 久久久久97国产精华液好用吗| 久久99久久精品欧美| 日韩欧美电影一区| 美女视频一区二区| 日韩精品一区二区三区蜜臀 | 在线观看不卡一区| 亚洲综合在线电影| 在线看国产一区二区| 亚洲一区二区三区四区五区中文 | 久久久综合激的五月天| 精品一区二区三区视频在线观看| 日韩欧美一区二区久久婷婷| 男男视频亚洲欧美| 精品国产凹凸成av人网站| 韩日av一区二区| 久久亚洲一级片| 国产91清纯白嫩初高中在线观看| 久久久精品国产免费观看同学| 国产精品88av| 国产精品国产三级国产有无不卡| 99国产精品一区| 亚洲伊人色欲综合网| 欧美片网站yy| 久久激情五月婷婷| 国产色91在线| 91香蕉视频mp4| 五月天激情综合| 久久夜色精品国产噜噜av| 大尺度一区二区| 一区二区三区精品| 欧美一级黄色录像| 国产成人亚洲综合色影视| 国产精品不卡一区| 欧美日韩午夜精品| 经典三级视频一区| 亚洲图片另类小说| 欧美一区二区在线看| 懂色中文一区二区在线播放| 亚洲精品午夜久久久| 日韩欧美一区在线观看| 国产aⅴ精品一区二区三区色成熟|