亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲免费电影在线| 欧美日韩你懂得| 精品视频在线看| 中文一区一区三区高中清不卡| 夜夜亚洲天天久久| 大胆欧美人体老妇| 精品国产3级a| 毛片一区二区三区| 欧美日韩的一区二区| 亚洲视频免费观看| av在线不卡电影| 国产无一区二区| 国产精品系列在线播放| 欧美r级在线观看| 日本aⅴ免费视频一区二区三区| 色综合久久88色综合天天| 国产女同互慰高潮91漫画| 久久国产精品99久久久久久老狼| 在线播放视频一区| 亚洲成精国产精品女| 在线观看亚洲专区| 亚洲美女在线国产| 一本一本久久a久久精品综合麻豆| 中文字幕精品一区| 国产一区二区三区不卡在线观看| 日韩精品在线一区| 蜜乳av一区二区| 日韩三级电影网址| 久久激情五月婷婷| 26uuu精品一区二区| 国产在线精品一区二区不卡了| 日韩西西人体444www| 韩日精品视频一区| 久久蜜桃一区二区| 国产精品综合网| 欧美经典一区二区| 91欧美一区二区| 亚洲影视在线播放| 欧美一区二区三区在线观看| 久久精品国产99久久6| 精品成人一区二区三区| 国产精品一二三区| 国产精品美女久久久久久久网站| 成人高清伦理免费影院在线观看| 亚洲欧美日韩国产中文在线| 欧美在线免费视屏| 免费成人在线视频观看| 亚洲精品在线网站| k8久久久一区二区三区| 亚洲精品v日韩精品| 欧美日韩亚洲另类| 国产乱子伦视频一区二区三区| 国产精品欧美久久久久无广告 | 国产欧美日韩视频一区二区| 丁香激情综合国产| 亚洲欧美国产三级| 91精品在线一区二区| 国内精品国产成人| 亚洲日穴在线视频| 欧美一区二区三区四区视频| 粉嫩嫩av羞羞动漫久久久| 亚洲在线视频网站| 精品乱码亚洲一区二区不卡| 99久久婷婷国产综合精品电影 | 亚洲素人一区二区| 欧美日韩国产天堂| 国产成人精品亚洲午夜麻豆| 亚洲激情校园春色| 欧美va日韩va| 欧美在线观看视频一区二区三区| 蜜桃一区二区三区在线观看| 中文字幕一区免费在线观看| 日韩三级在线观看| 色婷婷久久久久swag精品| 国产一二三精品| 亚洲一区二区三区在线| 中文字幕久久午夜不卡| 日韩视频一区在线观看| 北岛玲一区二区三区四区| 蜜臀久久99精品久久久画质超高清| 亚洲精品免费电影| 日韩无一区二区| 欧美亚洲国产一区二区三区va| 国产一区欧美一区| 婷婷综合久久一区二区三区| 中文字幕一区二区三区不卡在线| 久久综合色一综合色88| 欧美日韩一级视频| 色婷婷综合久久久中文字幕| 国产美女视频91| 美女视频第一区二区三区免费观看网站| 国产精品乱码妇女bbbb| 精品国一区二区三区| 欧美色倩网站大全免费| 91视频com| 99久久精品免费精品国产| 国产精品一区二区在线观看不卡| 午夜不卡在线视频| 亚洲一区在线视频观看| 亚洲视频电影在线| 国产日本欧美一区二区| 欧美精品一区二区久久婷婷| 4438成人网| 欧美精品一级二级三级| 9191成人精品久久| 欧美群妇大交群中文字幕| 欧美日韩一二三区| 欧美伦理电影网| 欧美日韩美少妇| 欧美日韩1234| 欧美电影在线免费观看| 欧美一级在线观看| 欧美本精品男人aⅴ天堂| 日韩午夜激情电影| 精品福利视频一区二区三区| 日韩精品一区在线观看| 久久久亚洲精品石原莉奈| 久久久久国产精品免费免费搜索| 国产肉丝袜一区二区| 国产精品麻豆欧美日韩ww| 国产精品久久久久天堂| 美女爽到高潮91| 国产伦精品一区二区三区在线观看| 国内外精品视频| 成人性生交大片免费看视频在线| 国产精品99久久久久久宅男| 成人毛片老司机大片| 一本到不卡精品视频在线观看| 日本二三区不卡| 3d动漫精品啪啪| 精品国产伦一区二区三区免费| 国产亚洲一本大道中文在线| 亚洲欧洲日韩在线| 亚洲mv大片欧洲mv大片精品| 免费观看成人av| 粉嫩一区二区三区在线看| 色欧美片视频在线观看在线视频| 欧美日韩午夜在线| 久久久亚洲高清| 一级精品视频在线观看宜春院| 日韩精品欧美精品| 国产剧情一区二区| 在线看一区二区| wwww国产精品欧美| 亚洲欧美电影院| 久久99在线观看| 色94色欧美sute亚洲线路二 | 成人免费在线视频| 亚洲国产一区在线观看| 国产美女精品人人做人人爽| 色综合一个色综合亚洲| 91精品国产91久久综合桃花| 中文字幕不卡一区| 日本强好片久久久久久aaa| 国产精品1区2区3区| 欧美色视频在线观看| 国产亚洲1区2区3区| 午夜精品成人在线视频| 成人一区在线观看| 欧美一二三区在线观看| 日韩码欧中文字| 国产真实精品久久二三区| 欧美性猛交xxxxxx富婆| 国产午夜精品久久久久久久| 日韩福利电影在线| 欧美亚洲国产怡红院影院| 国产欧美日韩在线视频| 蜜臀久久99精品久久久久久9| 色综合天天综合给合国产| 精品国产一区二区三区不卡| 亚洲一区二区成人在线观看| 成人激情视频网站| 精品99久久久久久| 日韩影院免费视频| 91极品美女在线| √…a在线天堂一区| 福利一区在线观看| 欧美mv和日韩mv国产网站| 亚洲福利一区二区三区| 色先锋aa成人| 国产精品视频观看| 国产福利91精品一区| 久久亚洲综合色一区二区三区| 日本最新不卡在线| 欧美美女直播网站| 亚洲自拍另类综合| 色94色欧美sute亚洲线路二| 亚洲欧美日韩成人高清在线一区| 成人综合在线视频| 国产日韩av一区| 国产成人在线网站| 久久亚区不卡日本| 国产精品羞羞答答xxdd| 国产亚洲综合色| 成人激情文学综合网| 日韩美女精品在线| 欧美亚洲国产一区在线观看网站| 亚洲制服欧美中文字幕中文字幕| 欧美性受xxxx黑人xyx性爽| 一区二区三区产品免费精品久久75|