~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to docs/reference/glib/html/glib-N-ary-Trees.html

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html>
3
3
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>N-ary Trees</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
 
<link rel="start" href="index.html" title="GLib Reference Manual">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
 
7
<link rel="home" href="index.html" title="GLib Reference Manual">
8
8
<link rel="up" href="glib-data-types.html" title="GLib Data Types">
9
9
<link rel="prev" href="glib-Balanced-Binary-Trees.html" title="Balanced Binary Trees">
10
10
<link rel="next" href="glib-Quarks.html" title="Quarks">
11
 
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="glib.html" title="GLib Overview">
14
14
<link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals">
26
26
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
27
27
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
28
28
<link rel="index" href="ix10.html" title="Index of new symbols in 2.16">
 
29
<link rel="index" href="ix11.html" title="Index of new symbols in 2.18">
29
30
</head>
30
31
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
31
32
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
36
37
<th width="100%" align="center">GLib Reference Manual</th>
37
38
<td><a accesskey="n" href="glib-Quarks.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
38
39
</tr>
39
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3393396" class="shortcut">Top</a>
40
 
                  &#160;|&#160;
41
 
                  <a href="#id3394452" class="shortcut">Description</a></nobr></td></tr>
 
40
<tr><td colspan="5" class="shortcuts">
 
41
<a href="#glib-N-ary-Trees.synopsis" class="shortcut">Top</a>
 
42
                 | 
 
43
                <a href="#glib-N-ary-Trees.description" class="shortcut">Description</a>
 
44
</td></tr>
42
45
</table>
43
46
<div class="refentry" lang="en">
44
47
<a name="glib-N-ary-Trees"></a><div class="titlepage"></div>
45
48
<div class="refnamediv"><table width="100%"><tr>
46
49
<td valign="top">
47
 
<h2>
48
 
<a name="id3393396"></a><span class="refentrytitle">N-ary Trees</span>
49
 
</h2>
50
 
<p>N-ary Trees &#8212; trees of data with any number of branches</p>
 
50
<h2><span class="refentrytitle"><a name="glib-N-ary-Trees.top_of_page"></a>N-ary Trees</span></h2>
 
51
<p>N-ary Trees — trees of data with any number of branches</p>
51
52
</td>
52
53
<td valign="top" align="right"></td>
53
54
</tr></table></div>
54
55
<div class="refsynopsisdiv">
55
 
<h2>Synopsis</h2>
 
56
<a name="glib-N-ary-Trees.synopsis"></a><h2>Synopsis</h2>
56
57
<pre class="synopsis">
57
58
 
58
59
#include &lt;glib.h&gt;
59
60
 
60
 
 
61
 
                    <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>;
62
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-new">g_node_new</a>                          (<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
63
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-copy">g_node_copy</a>                         (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
64
 
<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            (<a class="link" href="glib-N-ary-Trees.html#GCopyFunc">*GCopyFunc</a>)                        (<a class="link" href="glib-Basic-Types.html#gconstpointer">gconstpointer</a> src,
65
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
66
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-copy-deep">g_node_copy_deep</a>                    (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
67
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GCopyFunc">GCopyFunc</a> copy_func,
68
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
69
 
 
70
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-insert">g_node_insert</a>                       (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
71
 
                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> position,
72
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
73
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-insert-before">g_node_insert_before</a>                (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
74
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *sibling,
75
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
76
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-insert-after">g_node_insert_after</a>                 (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
77
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *sibling,
78
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
79
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-append">g_node_append</a>                       (parent, node)
80
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-prepend">g_node_prepend</a>                      (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
81
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
82
 
 
83
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-insert-data">g_node_insert_data</a>                  (parent, position, data)
84
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-insert-data-before">g_node_insert_data_before</a>           (parent, sibling, data)
85
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-append-data">g_node_append_data</a>                  (parent, data)
86
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-prepend-data">g_node_prepend_data</a>                 (parent, data)
87
 
 
88
 
void                <a class="link" href="glib-N-ary-Trees.html#g-node-reverse-children">g_node_reverse_children</a>             (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
89
 
void                <a class="link" href="glib-N-ary-Trees.html#g-node-traverse">g_node_traverse</a>                     (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root,
90
 
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType">GTraverseType</a> order,
91
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
92
 
                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> max_depth,
93
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeTraverseFunc">GNodeTraverseFunc</a> func,
94
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
95
 
enum                <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a>;
96
 
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            (<a class="link" href="glib-N-ary-Trees.html#GNodeTraverseFunc">*GNodeTraverseFunc</a>)                (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
97
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
98
 
void                <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach">g_node_children_foreach</a>             (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
99
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
100
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeForeachFunc">GNodeForeachFunc</a> func,
101
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
102
 
void                (<a class="link" href="glib-N-ary-Trees.html#GNodeForeachFunc">*GNodeForeachFunc</a>)                 (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
103
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
104
 
 
105
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-get-root">g_node_get_root</a>                     (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
106
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-find">g_node_find</a>                         (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root,
107
 
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType">GTraverseType</a> order,
108
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
109
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
110
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-find-child">g_node_find_child</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
111
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
112
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
113
 
<a class="link" href="glib-Basic-Types.html#gint">gint</a>                <a class="link" href="glib-N-ary-Trees.html#g-node-child-index">g_node_child_index</a>                  (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
114
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);
115
 
<a class="link" href="glib-Basic-Types.html#gint">gint</a>                <a class="link" href="glib-N-ary-Trees.html#g-node-child-position">g_node_child_position</a>               (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
116
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *child);
117
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-first-child">g_node_first_child</a>                  (node)
118
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-last-child">g_node_last_child</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
119
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-nth-child">g_node_nth_child</a>                    (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
120
 
                                                         <a class="link" href="glib-Basic-Types.html#guint">guint</a> n);
121
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-first-sibling">g_node_first_sibling</a>                (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
122
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-next-sibling">g_node_next_sibling</a>                 (node)
123
 
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-prev-sibling">g_node_prev_sibling</a>                 (node)
124
 
<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-last-sibling">g_node_last_sibling</a>                 (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
125
 
 
126
 
#define             <a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-LEAF:CAPS">G_NODE_IS_LEAF</a>                      (node)
127
 
#define             <a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-ROOT:CAPS">G_NODE_IS_ROOT</a>                      (node)
128
 
<a class="link" href="glib-Basic-Types.html#guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-depth">g_node_depth</a>                        (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
129
 
<a class="link" href="glib-Basic-Types.html#guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-n-nodes">g_node_n_nodes</a>                      (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root,
130
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags);
131
 
<a class="link" href="glib-Basic-Types.html#guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-n-children">g_node_n_children</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
132
 
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-N-ary-Trees.html#g-node-is-ancestor">g_node_is_ancestor</a>                  (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
133
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *descendant);
134
 
<a class="link" href="glib-Basic-Types.html#guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-max-height">g_node_max_height</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root);
135
 
 
136
 
void                <a class="link" href="glib-N-ary-Trees.html#g-node-unlink">g_node_unlink</a>                       (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);
137
 
void                <a class="link" href="glib-N-ary-Trees.html#g-node-destroy">g_node_destroy</a>                      (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root);
138
 
 
139
 
void                <a class="link" href="glib-N-ary-Trees.html#g-node-push-allocator">g_node_push_allocator</a>               (<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> dummy);
140
 
void                <a class="link" href="glib-N-ary-Trees.html#g-node-pop-allocator">g_node_pop_allocator</a>                (void);
 
61
                    <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>;
 
62
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-new" title="g_node_new ()">g_node_new</a>                          (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
63
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-copy" title="g_node_copy ()">g_node_copy</a>                         (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
64
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a>            (<a class="link" href="glib-N-ary-Trees.html#GCopyFunc" title="GCopyFunc ()">*GCopyFunc</a>)                        (<a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer">gconstpointer</a> src,
 
65
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
66
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-copy-deep" title="g_node_copy_deep ()">g_node_copy_deep</a>                    (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
67
                                                         <a class="link" href="glib-N-ary-Trees.html#GCopyFunc" title="GCopyFunc ()">GCopyFunc</a> copy_func,
 
68
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
69
 
 
70
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-insert" title="g_node_insert ()">g_node_insert</a>                       (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
71
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> position,
 
72
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
73
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-insert-before" title="g_node_insert_before ()">g_node_insert_before</a>                (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
74
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *sibling,
 
75
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
76
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-insert-after" title="g_node_insert_after ()">g_node_insert_after</a>                 (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
77
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *sibling,
 
78
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
79
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-append" title="g_node_append()">g_node_append</a>                       (parent, node)
 
80
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-prepend" title="g_node_prepend ()">g_node_prepend</a>                      (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
81
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
82
 
 
83
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-insert-data" title="g_node_insert_data()">g_node_insert_data</a>                  (parent, position, data)
 
84
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-insert-data-before" title="g_node_insert_data_before()">g_node_insert_data_before</a>           (parent, sibling, data)
 
85
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-append-data" title="g_node_append_data()">g_node_append_data</a>                  (parent, data)
 
86
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-prepend-data" title="g_node_prepend_data()">g_node_prepend_data</a>                 (parent, data)
 
87
 
 
88
void                <a class="link" href="glib-N-ary-Trees.html#g-node-reverse-children" title="g_node_reverse_children ()">g_node_reverse_children</a>             (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
89
void                <a class="link" href="glib-N-ary-Trees.html#g-node-traverse" title="g_node_traverse ()">g_node_traverse</a>                     (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root,
 
90
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType" title="enum GTraverseType">GTraverseType</a> order,
 
91
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
92
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> max_depth,
 
93
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeTraverseFunc" title="GNodeTraverseFunc ()">GNodeTraverseFunc</a> func,
 
94
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
95
enum                <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a>;
 
96
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            (<a class="link" href="glib-N-ary-Trees.html#GNodeTraverseFunc" title="GNodeTraverseFunc ()">*GNodeTraverseFunc</a>)                (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
97
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
98
void                <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach" title="g_node_children_foreach ()">g_node_children_foreach</a>             (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
99
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
100
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeForeachFunc" title="GNodeForeachFunc ()">GNodeForeachFunc</a> func,
 
101
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
102
void                (<a class="link" href="glib-N-ary-Trees.html#GNodeForeachFunc" title="GNodeForeachFunc ()">*GNodeForeachFunc</a>)                 (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
103
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
104
 
 
105
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-get-root" title="g_node_get_root ()">g_node_get_root</a>                     (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
106
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-find" title="g_node_find ()">g_node_find</a>                         (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root,
 
107
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType" title="enum GTraverseType">GTraverseType</a> order,
 
108
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
109
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
110
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-find-child" title="g_node_find_child ()">g_node_find_child</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
111
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
112
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
113
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                <a class="link" href="glib-N-ary-Trees.html#g-node-child-index" title="g_node_child_index ()">g_node_child_index</a>                  (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
114
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);
 
115
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                <a class="link" href="glib-N-ary-Trees.html#g-node-child-position" title="g_node_child_position ()">g_node_child_position</a>               (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
116
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *child);
 
117
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-first-child" title="g_node_first_child()">g_node_first_child</a>                  (node)
 
118
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-last-child" title="g_node_last_child ()">g_node_last_child</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
119
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-nth-child" title="g_node_nth_child ()">g_node_nth_child</a>                    (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
120
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> n);
 
121
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-first-sibling" title="g_node_first_sibling ()">g_node_first_sibling</a>                (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
122
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-next-sibling" title="g_node_next_sibling()">g_node_next_sibling</a>                 (node)
 
123
#define             <a class="link" href="glib-N-ary-Trees.html#g-node-prev-sibling" title="g_node_prev_sibling()">g_node_prev_sibling</a>                 (node)
 
124
<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              <a class="link" href="glib-N-ary-Trees.html#g-node-last-sibling" title="g_node_last_sibling ()">g_node_last_sibling</a>                 (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
125
 
 
126
#define             <a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-LEAF--CAPS" title="G_NODE_IS_LEAF()">G_NODE_IS_LEAF</a>                      (node)
 
127
#define             <a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-ROOT--CAPS" title="G_NODE_IS_ROOT()">G_NODE_IS_ROOT</a>                      (node)
 
128
<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-depth" title="g_node_depth ()">g_node_depth</a>                        (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
129
<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-n-nodes" title="g_node_n_nodes ()">g_node_n_nodes</a>                      (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root,
 
130
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags);
 
131
<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-n-children" title="g_node_n_children ()">g_node_n_children</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
132
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            <a class="link" href="glib-N-ary-Trees.html#g-node-is-ancestor" title="g_node_is_ancestor ()">g_node_is_ancestor</a>                  (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
133
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *descendant);
 
134
<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               <a class="link" href="glib-N-ary-Trees.html#g-node-max-height" title="g_node_max_height ()">g_node_max_height</a>                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root);
 
135
 
 
136
void                <a class="link" href="glib-N-ary-Trees.html#g-node-unlink" title="g_node_unlink ()">g_node_unlink</a>                       (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);
 
137
void                <a class="link" href="glib-N-ary-Trees.html#g-node-destroy" title="g_node_destroy ()">g_node_destroy</a>                      (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root);
 
138
 
 
139
void                <a class="link" href="glib-N-ary-Trees.html#g-node-push-allocator" title="g_node_push_allocator ()">g_node_push_allocator</a>               (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> dummy);
 
140
void                <a class="link" href="glib-N-ary-Trees.html#g-node-pop-allocator" title="g_node_pop_allocator ()">g_node_pop_allocator</a>                (void);
141
141
</pre>
142
142
</div>
143
143
<div class="refsect1" lang="en">
144
 
<a name="id3394452"></a><h2>Description</h2>
 
144
<a name="glib-N-ary-Trees.description"></a><h2>Description</h2>
145
145
<p>
146
 
The <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> struct and its associated functions provide a N-ary tree data
 
146
The <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> struct and its associated functions provide a N-ary tree data
147
147
structure, where nodes in the tree can contain arbitrary data.
148
148
</p>
149
149
<p>
150
 
To create a new tree use <a class="link" href="glib-N-ary-Trees.html#g-node-new"><code class="function">g_node_new()</code></a>.
151
 
</p>
152
 
<p>
153
 
To insert a node into a tree use <a class="link" href="glib-N-ary-Trees.html#g-node-insert"><code class="function">g_node_insert()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-insert-before"><code class="function">g_node_insert_before()</code></a>,
154
 
<a class="link" href="glib-N-ary-Trees.html#g-node-append"><code class="function">g_node_append()</code></a> and <a class="link" href="glib-N-ary-Trees.html#g-node-prepend"><code class="function">g_node_prepend()</code></a>.
155
 
</p>
156
 
<p>
157
 
To create a new node and insert it into a tree use <a class="link" href="glib-N-ary-Trees.html#g-node-insert-data"><code class="function">g_node_insert_data()</code></a>, 
158
 
<a class="link" href="glib-N-ary-Trees.html#g-node-insert-data-before"><code class="function">g_node_insert_data_before()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-append-data"><code class="function">g_node_append_data()</code></a> and <a class="link" href="glib-N-ary-Trees.html#g-node-prepend-data"><code class="function">g_node_prepend_data()</code></a>.
159
 
</p>
160
 
<p>
161
 
To reverse the children of a node use <a class="link" href="glib-N-ary-Trees.html#g-node-reverse-children"><code class="function">g_node_reverse_children()</code></a>.
162
 
</p>
163
 
<p>
164
 
To find a node use <a class="link" href="glib-N-ary-Trees.html#g-node-get-root"><code class="function">g_node_get_root()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-find"><code class="function">g_node_find()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-find-child"><code class="function">g_node_find_child()</code></a>,
165
 
<a class="link" href="glib-N-ary-Trees.html#g-node-child-index"><code class="function">g_node_child_index()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-child-position"><code class="function">g_node_child_position()</code></a>, 
166
 
<a class="link" href="glib-N-ary-Trees.html#g-node-first-child"><code class="function">g_node_first_child()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-last-child"><code class="function">g_node_last_child()</code></a>,
167
 
<a class="link" href="glib-N-ary-Trees.html#g-node-nth-child"><code class="function">g_node_nth_child()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-first-sibling"><code class="function">g_node_first_sibling()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-prev-sibling"><code class="function">g_node_prev_sibling()</code></a>,
168
 
<a class="link" href="glib-N-ary-Trees.html#g-node-next-sibling"><code class="function">g_node_next_sibling()</code></a> or <a class="link" href="glib-N-ary-Trees.html#g-node-last-sibling"><code class="function">g_node_last_sibling()</code></a>.
169
 
</p>
170
 
<p>
171
 
To get information about a node or tree use <a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-LEAF:CAPS"><code class="function">G_NODE_IS_LEAF()</code></a>,
172
 
<a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-ROOT:CAPS"><code class="function">G_NODE_IS_ROOT()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-depth"><code class="function">g_node_depth()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-n-nodes"><code class="function">g_node_n_nodes()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-n-children"><code class="function">g_node_n_children()</code></a>,
173
 
<a class="link" href="glib-N-ary-Trees.html#g-node-is-ancestor"><code class="function">g_node_is_ancestor()</code></a> or <a class="link" href="glib-N-ary-Trees.html#g-node-max-height"><code class="function">g_node_max_height()</code></a>.
 
150
To create a new tree use <a class="link" href="glib-N-ary-Trees.html#g-node-new" title="g_node_new ()"><code class="function">g_node_new()</code></a>.
 
151
</p>
 
152
<p>
 
153
To insert a node into a tree use <a class="link" href="glib-N-ary-Trees.html#g-node-insert" title="g_node_insert ()"><code class="function">g_node_insert()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-insert-before" title="g_node_insert_before ()"><code class="function">g_node_insert_before()</code></a>,
 
154
<a class="link" href="glib-N-ary-Trees.html#g-node-append" title="g_node_append()"><code class="function">g_node_append()</code></a> and <a class="link" href="glib-N-ary-Trees.html#g-node-prepend" title="g_node_prepend ()"><code class="function">g_node_prepend()</code></a>.
 
155
</p>
 
156
<p>
 
157
To create a new node and insert it into a tree use <a class="link" href="glib-N-ary-Trees.html#g-node-insert-data" title="g_node_insert_data()"><code class="function">g_node_insert_data()</code></a>,
 
158
<a class="link" href="glib-N-ary-Trees.html#g-node-insert-data-before" title="g_node_insert_data_before()"><code class="function">g_node_insert_data_before()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-append-data" title="g_node_append_data()"><code class="function">g_node_append_data()</code></a> and <a class="link" href="glib-N-ary-Trees.html#g-node-prepend-data" title="g_node_prepend_data()"><code class="function">g_node_prepend_data()</code></a>.
 
159
</p>
 
160
<p>
 
161
To reverse the children of a node use <a class="link" href="glib-N-ary-Trees.html#g-node-reverse-children" title="g_node_reverse_children ()"><code class="function">g_node_reverse_children()</code></a>.
 
162
</p>
 
163
<p>
 
164
To find a node use <a class="link" href="glib-N-ary-Trees.html#g-node-get-root" title="g_node_get_root ()"><code class="function">g_node_get_root()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-find" title="g_node_find ()"><code class="function">g_node_find()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-find-child" title="g_node_find_child ()"><code class="function">g_node_find_child()</code></a>,
 
165
<a class="link" href="glib-N-ary-Trees.html#g-node-child-index" title="g_node_child_index ()"><code class="function">g_node_child_index()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-child-position" title="g_node_child_position ()"><code class="function">g_node_child_position()</code></a>,
 
166
<a class="link" href="glib-N-ary-Trees.html#g-node-first-child" title="g_node_first_child()"><code class="function">g_node_first_child()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-last-child" title="g_node_last_child ()"><code class="function">g_node_last_child()</code></a>,
 
167
<a class="link" href="glib-N-ary-Trees.html#g-node-nth-child" title="g_node_nth_child ()"><code class="function">g_node_nth_child()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-first-sibling" title="g_node_first_sibling ()"><code class="function">g_node_first_sibling()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-prev-sibling" title="g_node_prev_sibling()"><code class="function">g_node_prev_sibling()</code></a>,
 
168
<a class="link" href="glib-N-ary-Trees.html#g-node-next-sibling" title="g_node_next_sibling()"><code class="function">g_node_next_sibling()</code></a> or <a class="link" href="glib-N-ary-Trees.html#g-node-last-sibling" title="g_node_last_sibling ()"><code class="function">g_node_last_sibling()</code></a>.
 
169
</p>
 
170
<p>
 
171
To get information about a node or tree use <a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-LEAF--CAPS" title="G_NODE_IS_LEAF()"><code class="function">G_NODE_IS_LEAF()</code></a>,
 
172
<a class="link" href="glib-N-ary-Trees.html#G-NODE-IS-ROOT--CAPS" title="G_NODE_IS_ROOT()"><code class="function">G_NODE_IS_ROOT()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-depth" title="g_node_depth ()"><code class="function">g_node_depth()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-n-nodes" title="g_node_n_nodes ()"><code class="function">g_node_n_nodes()</code></a>, <a class="link" href="glib-N-ary-Trees.html#g-node-n-children" title="g_node_n_children ()"><code class="function">g_node_n_children()</code></a>,
 
173
<a class="link" href="glib-N-ary-Trees.html#g-node-is-ancestor" title="g_node_is_ancestor ()"><code class="function">g_node_is_ancestor()</code></a> or <a class="link" href="glib-N-ary-Trees.html#g-node-max-height" title="g_node_max_height ()"><code class="function">g_node_max_height()</code></a>.
174
174
</p>
175
175
<p>
176
176
To traverse a tree, calling a function for each node visited in the
177
 
traversal, use <a class="link" href="glib-N-ary-Trees.html#g-node-traverse"><code class="function">g_node_traverse()</code></a> or <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach"><code class="function">g_node_children_foreach()</code></a>.
 
177
traversal, use <a class="link" href="glib-N-ary-Trees.html#g-node-traverse" title="g_node_traverse ()"><code class="function">g_node_traverse()</code></a> or <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach" title="g_node_children_foreach ()"><code class="function">g_node_children_foreach()</code></a>.
178
178
</p>
179
179
<p>
180
 
To remove a node or subtree from a tree use <a class="link" href="glib-N-ary-Trees.html#g-node-unlink"><code class="function">g_node_unlink()</code></a> or
181
 
<a class="link" href="glib-N-ary-Trees.html#g-node-destroy"><code class="function">g_node_destroy()</code></a>.
 
180
To remove a node or subtree from a tree use <a class="link" href="glib-N-ary-Trees.html#g-node-unlink" title="g_node_unlink ()"><code class="function">g_node_unlink()</code></a> or
 
181
<a class="link" href="glib-N-ary-Trees.html#g-node-destroy" title="g_node_destroy ()"><code class="function">g_node_destroy()</code></a>.
182
182
</p>
183
183
</div>
184
184
<div class="refsect1" lang="en">
185
 
<a name="id3394857"></a><h2>Details</h2>
 
185
<a name="glib-N-ary-Trees.details"></a><h2>Details</h2>
186
186
<div class="refsect2" lang="en">
187
 
<a name="id3394868"></a><h3>
188
 
<a name="GNode"></a>GNode</h3>
189
 
<a class="indexterm" name="id3394880"></a><pre class="programlisting">typedef struct {
 
187
<a name="GNode"></a><h3>GNode</h3>
 
188
<pre class="programlisting">typedef struct {
190
189
  gpointer data;
191
190
  GNode   *next;
192
191
  GNode   *prev;
197
196
<p>
198
197
The <span class="structname">GNode</span> struct represents one node in a
199
198
<a class="link" href="glib-N-ary-Trees.html" title="N-ary Trees">N-ary Tree</a>.
200
 
fields 
 
199
fields
201
200
</p>
202
201
<div class="variablelist"><table border="0">
203
202
<col align="left" valign="top">
204
203
<tbody>
205
204
<tr>
206
 
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>&#160;<em class="structfield"><code>data</code></em>;</span></p></td>
 
205
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> <em class="structfield"><code>data</code></em>;</span></p></td>
207
206
<td>contains the actual data of the node.
208
207
</td>
209
208
</tr>
210
209
<tr>
211
 
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>&#160;*<em class="structfield"><code>next</code></em>;</span></p></td>
 
210
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *<em class="structfield"><code>next</code></em>;</span></p></td>
212
211
<td>points to the node's next sibling (a sibling is another 
213
212
  <span class="structname">GNode</span> with the same parent).
214
213
</td>
215
214
</tr>
216
215
<tr>
217
 
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>&#160;*<em class="structfield"><code>prev</code></em>;</span></p></td>
 
216
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *<em class="structfield"><code>prev</code></em>;</span></p></td>
218
217
<td>points to the node's previous sibling.
219
218
</td>
220
219
</tr>
221
220
<tr>
222
 
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>&#160;*<em class="structfield"><code>parent</code></em>;</span></p></td>
 
221
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *<em class="structfield"><code>parent</code></em>;</span></p></td>
223
222
<td>points to the parent of the <span class="structname">GNode</span>,
224
 
  or is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <span class="structname">GNode</span> is the root of the tree.
 
223
  or is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> if the <span class="structname">GNode</span> is the root of the tree.
225
224
</td>
226
225
</tr>
227
226
<tr>
228
 
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>&#160;*<em class="structfield"><code>children</code></em>;</span></p></td>
 
227
<td><p><span class="term"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *<em class="structfield"><code>children</code></em>;</span></p></td>
229
228
<td>The <em class="structfield"><code>children</code></em> field points to the first 
230
 
  child of the <span class="structname">GNode</span>. The other children are accessed 
 
229
  child of the <span class="structname">GNode</span>. The other children are accessed
231
230
  by using the <em class="structfield"><code>next</code></em> pointer of each child.
232
 
 
233
231
</td>
234
232
</tr>
235
233
</tbody>
237
235
</div>
238
236
<hr>
239
237
<div class="refsect2" lang="en">
240
 
<a name="id3395051"></a><h3>
241
 
<a name="g-node-new"></a>g_node_new ()</h3>
242
 
<a class="indexterm" name="id3395063"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_new                          (<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
 
238
<a name="g-node-new"></a><h3>g_node_new ()</h3>
 
239
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_new                          (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
243
240
<p>
244
 
Creates a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> containing the given data.
 
241
Creates a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> containing the given data.
245
242
Used to create the first node in a tree.</p>
246
243
<p>
247
 
 
248
244
</p>
249
245
<div class="variablelist"><table border="0">
250
246
<col align="left" valign="top">
251
247
<tbody>
252
248
<tr>
253
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
 
249
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
254
250
<td> the data of the new node
255
251
</td>
256
252
</tr>
257
253
<tr>
258
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
259
 
<td> a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
254
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
255
<td> a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
260
256
</td>
261
257
</tr>
262
258
</tbody>
264
260
</div>
265
261
<hr>
266
262
<div class="refsect2" lang="en">
267
 
<a name="id3395141"></a><h3>
268
 
<a name="g-node-copy"></a>g_node_copy ()</h3>
269
 
<a class="indexterm" name="id3395153"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_copy                         (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
270
 
<p>
271
 
Recursively copies a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> (but does not deep-copy the data inside the 
272
 
nodes, see <a class="link" href="glib-N-ary-Trees.html#g-node-copy-deep"><code class="function">g_node_copy_deep()</code></a> if you need that).</p>
273
 
<p>
274
 
 
 
263
<a name="g-node-copy"></a><h3>g_node_copy ()</h3>
 
264
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_copy                         (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
265
<p>
 
266
Recursively copies a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> (but does not deep-copy the data inside the 
 
267
nodes, see <a class="link" href="glib-N-ary-Trees.html#g-node-copy-deep" title="g_node_copy_deep ()"><code class="function">g_node_copy_deep()</code></a> if you need that).</p>
 
268
<p>
275
269
</p>
276
270
<div class="variablelist"><table border="0">
277
271
<col align="left" valign="top">
278
272
<tbody>
279
273
<tr>
280
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
281
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
274
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
275
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
282
276
</td>
283
277
</tr>
284
278
<tr>
285
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
286
 
<td> a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> containing the same data pointers
 
279
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
280
<td> a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> containing the same data pointers
287
281
</td>
288
282
</tr>
289
283
</tbody>
291
285
</div>
292
286
<hr>
293
287
<div class="refsect2" lang="en">
294
 
<a name="id3395249"></a><h3>
295
 
<a name="GCopyFunc"></a>GCopyFunc ()</h3>
296
 
<a class="indexterm" name="id3395264"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            (*GCopyFunc)                        (<a class="link" href="glib-Basic-Types.html#gconstpointer">gconstpointer</a> src,
297
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
 
288
<a name="GCopyFunc"></a><h3>GCopyFunc ()</h3>
 
289
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a>            (*GCopyFunc)                        (<a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer">gconstpointer</a> src,
 
290
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
298
291
<p>
299
292
A function of this signature is used to copy the node data 
300
293
when doing a deep-copy of a tree.</p>
301
294
<p>
302
 
 
303
295
</p>
304
296
<div class="variablelist"><table border="0">
305
297
<col align="left" valign="top">
306
298
<tbody>
307
299
<tr>
308
 
<td><p><span class="term"><em class="parameter"><code>src</code></em>&#160;:</span></p></td>
 
300
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
309
301
<td> A pointer to the data which should be copied
310
302
</td>
311
303
</tr>
312
304
<tr>
313
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
 
305
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
314
306
<td> Additional data
315
307
</td>
316
308
</tr>
317
309
<tr>
318
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
310
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
319
311
<td> A pointer to the copy
320
312
 
321
313
</td>
322
314
</tr>
323
315
</tbody>
324
316
</table></div>
325
 
<p class="since">Since  2.4
326
 
</p>
 
317
<p class="since">Since 2.4</p>
327
318
</div>
328
319
<hr>
329
320
<div class="refsect2" lang="en">
330
 
<a name="id3395354"></a><h3>
331
 
<a name="g-node-copy-deep"></a>g_node_copy_deep ()</h3>
332
 
<a class="indexterm" name="id3395369"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_copy_deep                    (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
333
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GCopyFunc">GCopyFunc</a> copy_func,
334
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
335
 
<p>
336
 
Recursively copies a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> and its data.</p>
337
 
<p>
338
 
 
 
321
<a name="g-node-copy-deep"></a><h3>g_node_copy_deep ()</h3>
 
322
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_copy_deep                    (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
323
                                                         <a class="link" href="glib-N-ary-Trees.html#GCopyFunc" title="GCopyFunc ()">GCopyFunc</a> copy_func,
 
324
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
 
325
<p>
 
326
Recursively copies a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> and its data.</p>
 
327
<p>
339
328
</p>
340
329
<div class="variablelist"><table border="0">
341
330
<col align="left" valign="top">
342
331
<tbody>
343
332
<tr>
344
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
345
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
333
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
334
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
346
335
</td>
347
336
</tr>
348
337
<tr>
349
 
<td><p><span class="term"><em class="parameter"><code>copy_func</code></em>&#160;:</span></p></td>
 
338
<td><p><span class="term"><em class="parameter"><code>copy_func</code></em> :</span></p></td>
350
339
<td> the function which is called to copy the data inside each node,
351
 
  or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to use the original data.
 
340
  or <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> to use the original data.
352
341
</td>
353
342
</tr>
354
343
<tr>
355
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
 
344
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
356
345
<td> data to pass to <em class="parameter"><code>copy_func</code></em>
357
346
</td>
358
347
</tr>
359
348
<tr>
360
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
361
 
<td> a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> containing copies of the data in <em class="parameter"><code>node</code></em>.
 
349
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
350
<td> a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> containing copies of the data in <em class="parameter"><code>node</code></em>.
362
351
 
363
352
</td>
364
353
</tr>
365
354
</tbody>
366
355
</table></div>
367
 
<p class="since">Since  2.4
368
 
</p>
 
356
<p class="since">Since 2.4</p>
369
357
</div>
370
358
<hr>
371
359
<div class="refsect2" lang="en">
372
 
<a name="id3395527"></a><h3>
373
 
<a name="g-node-insert"></a>g_node_insert ()</h3>
374
 
<a class="indexterm" name="id3395540"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_insert                       (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
375
 
                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> position,
376
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
377
 
<p>
378
 
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> beneath the parent at the given position.</p>
379
 
<p>
380
 
 
 
360
<a name="g-node-insert"></a><h3>g_node_insert ()</h3>
 
361
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_insert                       (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
362
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> position,
 
363
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
364
<p>
 
365
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> beneath the parent at the given position.</p>
 
366
<p>
381
367
</p>
382
368
<div class="variablelist"><table border="0">
383
369
<col align="left" valign="top">
384
370
<tbody>
385
371
<tr>
386
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
387
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> under
 
372
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
373
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> under
388
374
</td>
389
375
</tr>
390
376
<tr>
391
 
<td><p><span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></p></td>
 
377
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
392
378
<td> the position to place <em class="parameter"><code>node</code></em> at, with respect to its siblings
393
379
    If position is -1, <em class="parameter"><code>node</code></em> is inserted as the last child of <em class="parameter"><code>parent</code></em>
394
380
</td>
395
381
</tr>
396
382
<tr>
397
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
398
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to insert
399
 
</td>
400
 
</tr>
401
 
<tr>
402
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
403
 
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
404
 
</td>
405
 
</tr>
406
 
</tbody>
407
 
</table></div>
408
 
</div>
409
 
<hr>
410
 
<div class="refsect2" lang="en">
411
 
<a name="id3395701"></a><h3>
412
 
<a name="g-node-insert-before"></a>g_node_insert_before ()</h3>
413
 
<a class="indexterm" name="id3395714"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_insert_before                (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
414
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *sibling,
415
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
416
 
<p>
417
 
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> beneath the parent before the given sibling.</p>
418
 
<p>
419
 
 
420
 
</p>
421
 
<div class="variablelist"><table border="0">
422
 
<col align="left" valign="top">
423
 
<tbody>
424
 
<tr>
425
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
426
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> under
427
 
</td>
428
 
</tr>
429
 
<tr>
430
 
<td><p><span class="term"><em class="parameter"><code>sibling</code></em>&#160;:</span></p></td>
431
 
<td> the sibling <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> before. 
432
 
    If sibling is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the node is inserted as the last child of <em class="parameter"><code>parent</code></em>.
433
 
</td>
434
 
</tr>
435
 
<tr>
436
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
437
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to insert
438
 
</td>
439
 
</tr>
440
 
<tr>
441
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
442
 
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
443
 
</td>
444
 
</tr>
445
 
</tbody>
446
 
</table></div>
447
 
</div>
448
 
<hr>
449
 
<div class="refsect2" lang="en">
450
 
<a name="id3395888"></a><h3>
451
 
<a name="g-node-insert-after"></a>g_node_insert_after ()</h3>
452
 
<a class="indexterm" name="id3395901"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_insert_after                 (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
453
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *sibling,
454
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
455
 
<p>
456
 
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> beneath the parent after the given sibling.</p>
457
 
<p>
458
 
 
459
 
</p>
460
 
<div class="variablelist"><table border="0">
461
 
<col align="left" valign="top">
462
 
<tbody>
463
 
<tr>
464
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
465
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> under
466
 
</td>
467
 
</tr>
468
 
<tr>
469
 
<td><p><span class="term"><em class="parameter"><code>sibling</code></em>&#160;:</span></p></td>
470
 
<td> the sibling <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> after. 
471
 
    If sibling is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the node is inserted as the first child of <em class="parameter"><code>parent</code></em>.
472
 
</td>
473
 
</tr>
474
 
<tr>
475
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
476
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to insert
477
 
</td>
478
 
</tr>
479
 
<tr>
480
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
481
 
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
482
 
</td>
483
 
</tr>
484
 
</tbody>
485
 
</table></div>
486
 
</div>
487
 
<hr>
488
 
<div class="refsect2" lang="en">
489
 
<a name="id3396074"></a><h3>
490
 
<a name="g-node-append"></a>g_node_append()</h3>
491
 
<a class="indexterm" name="id3396087"></a><pre class="programlisting">#define             g_node_append(parent, node)</pre>
492
 
<p>
493
 
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> as the last child of the given parent.</p>
494
 
<p>
495
 
 
496
 
</p>
497
 
<div class="variablelist"><table border="0">
498
 
<col align="left" valign="top">
499
 
<tbody>
500
 
<tr>
501
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
502
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> under
503
 
</td>
504
 
</tr>
505
 
<tr>
506
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
507
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to insert
508
 
</td>
509
 
</tr>
510
 
<tr>
511
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
512
 
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
513
 
</td>
514
 
</tr>
515
 
</tbody>
516
 
</table></div>
517
 
</div>
518
 
<hr>
519
 
<div class="refsect2" lang="en">
520
 
<a name="id3396189"></a><h3>
521
 
<a name="g-node-prepend"></a>g_node_prepend ()</h3>
522
 
<a class="indexterm" name="id3396202"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_prepend                      (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *parent,
523
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
524
 
<p>
525
 
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> as the first child of the given parent.</p>
526
 
<p>
527
 
 
528
 
</p>
529
 
<div class="variablelist"><table border="0">
530
 
<col align="left" valign="top">
531
 
<tbody>
532
 
<tr>
533
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
534
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> under
535
 
</td>
536
 
</tr>
537
 
<tr>
538
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
539
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to insert
540
 
</td>
541
 
</tr>
542
 
<tr>
543
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
544
 
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
545
 
</td>
546
 
</tr>
547
 
</tbody>
548
 
</table></div>
549
 
</div>
550
 
<hr>
551
 
<div class="refsect2" lang="en">
552
 
<a name="id3396324"></a><h3>
553
 
<a name="g-node-insert-data"></a>g_node_insert_data()</h3>
554
 
<a class="indexterm" name="id3396338"></a><pre class="programlisting">#define             g_node_insert_data(parent, position, data)</pre>
555
 
<p>
556
 
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> at the given position.</p>
557
 
<p>
558
 
 
559
 
</p>
560
 
<div class="variablelist"><table border="0">
561
 
<col align="left" valign="top">
562
 
<tbody>
563
 
<tr>
564
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
565
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> under
566
 
</td>
567
 
</tr>
568
 
<tr>
569
 
<td><p><span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></p></td>
570
 
<td> the position to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> at. If position is -1, 
571
 
    the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> is inserted as the last child of <em class="parameter"><code>parent</code></em>
572
 
</td>
573
 
</tr>
574
 
<tr>
575
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
576
 
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
577
 
</td>
578
 
</tr>
579
 
<tr>
580
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
581
 
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
582
 
</td>
583
 
</tr>
584
 
</tbody>
585
 
</table></div>
586
 
</div>
587
 
<hr>
588
 
<div class="refsect2" lang="en">
589
 
<a name="id3396476"></a><h3>
590
 
<a name="g-node-insert-data-before"></a>g_node_insert_data_before()</h3>
591
 
<a class="indexterm" name="id3396489"></a><pre class="programlisting">#define             g_node_insert_data_before(parent, sibling, data)</pre>
592
 
<p>
593
 
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> before the given sibling.</p>
594
 
<p>
595
 
 
596
 
</p>
597
 
<div class="variablelist"><table border="0">
598
 
<col align="left" valign="top">
599
 
<tbody>
600
 
<tr>
601
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
602
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> under
603
 
</td>
604
 
</tr>
605
 
<tr>
606
 
<td><p><span class="term"><em class="parameter"><code>sibling</code></em>&#160;:</span></p></td>
607
 
<td> the sibling <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> before
608
 
</td>
609
 
</tr>
610
 
<tr>
611
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
612
 
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
613
 
</td>
614
 
</tr>
615
 
<tr>
616
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
617
 
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
618
 
</td>
619
 
</tr>
620
 
</tbody>
621
 
</table></div>
622
 
</div>
623
 
<hr>
624
 
<div class="refsect2" lang="en">
625
 
<a name="id3396621"></a><h3>
626
 
<a name="g-node-append-data"></a>g_node_append_data()</h3>
627
 
<a class="indexterm" name="id3396634"></a><pre class="programlisting">#define             g_node_append_data(parent, data)</pre>
628
 
<p>
629
 
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> as the last child of the given parent.</p>
630
 
<p>
631
 
 
632
 
</p>
633
 
<div class="variablelist"><table border="0">
634
 
<col align="left" valign="top">
635
 
<tbody>
636
 
<tr>
637
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
638
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> under
639
 
</td>
640
 
</tr>
641
 
<tr>
642
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
643
 
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
644
 
</td>
645
 
</tr>
646
 
<tr>
647
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
648
 
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
649
 
</td>
650
 
</tr>
651
 
</tbody>
652
 
</table></div>
653
 
</div>
654
 
<hr>
655
 
<div class="refsect2" lang="en">
656
 
<a name="id3396735"></a><h3>
657
 
<a name="g-node-prepend-data"></a>g_node_prepend_data()</h3>
658
 
<a class="indexterm" name="id3396749"></a><pre class="programlisting">#define             g_node_prepend_data(parent, data)</pre>
659
 
<p>
660
 
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> as the first child of the given parent.</p>
661
 
<p>
662
 
 
663
 
</p>
664
 
<div class="variablelist"><table border="0">
665
 
<col align="left" valign="top">
666
 
<tbody>
667
 
<tr>
668
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></p></td>
669
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> under
670
 
</td>
671
 
</tr>
672
 
<tr>
673
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
674
 
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
675
 
</td>
676
 
</tr>
677
 
<tr>
678
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
679
 
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
680
 
</td>
681
 
</tr>
682
 
</tbody>
683
 
</table></div>
684
 
</div>
685
 
<hr>
686
 
<div class="refsect2" lang="en">
687
 
<a name="id3396850"></a><h3>
688
 
<a name="g-node-reverse-children"></a>g_node_reverse_children ()</h3>
689
 
<a class="indexterm" name="id3396864"></a><pre class="programlisting">void                g_node_reverse_children             (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
690
 
<p>
691
 
Reverses the order of the children of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
383
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
384
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to insert
 
385
</td>
 
386
</tr>
 
387
<tr>
 
388
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
389
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
390
</td>
 
391
</tr>
 
392
</tbody>
 
393
</table></div>
 
394
</div>
 
395
<hr>
 
396
<div class="refsect2" lang="en">
 
397
<a name="g-node-insert-before"></a><h3>g_node_insert_before ()</h3>
 
398
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_insert_before                (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
399
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *sibling,
 
400
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
401
<p>
 
402
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> beneath the parent before the given sibling.</p>
 
403
<p>
 
404
</p>
 
405
<div class="variablelist"><table border="0">
 
406
<col align="left" valign="top">
 
407
<tbody>
 
408
<tr>
 
409
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
410
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> under
 
411
</td>
 
412
</tr>
 
413
<tr>
 
414
<td><p><span class="term"><em class="parameter"><code>sibling</code></em> :</span></p></td>
 
415
<td> the sibling <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> before. 
 
416
    If sibling is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a>, the node is inserted as the last child of <em class="parameter"><code>parent</code></em>.
 
417
</td>
 
418
</tr>
 
419
<tr>
 
420
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
421
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to insert
 
422
</td>
 
423
</tr>
 
424
<tr>
 
425
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
426
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
427
</td>
 
428
</tr>
 
429
</tbody>
 
430
</table></div>
 
431
</div>
 
432
<hr>
 
433
<div class="refsect2" lang="en">
 
434
<a name="g-node-insert-after"></a><h3>g_node_insert_after ()</h3>
 
435
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_insert_after                 (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
436
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *sibling,
 
437
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
438
<p>
 
439
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> beneath the parent after the given sibling.</p>
 
440
<p>
 
441
</p>
 
442
<div class="variablelist"><table border="0">
 
443
<col align="left" valign="top">
 
444
<tbody>
 
445
<tr>
 
446
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
447
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> under
 
448
</td>
 
449
</tr>
 
450
<tr>
 
451
<td><p><span class="term"><em class="parameter"><code>sibling</code></em> :</span></p></td>
 
452
<td> the sibling <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place <em class="parameter"><code>node</code></em> after. 
 
453
    If sibling is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a>, the node is inserted as the first child of <em class="parameter"><code>parent</code></em>.
 
454
</td>
 
455
</tr>
 
456
<tr>
 
457
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
458
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to insert
 
459
</td>
 
460
</tr>
 
461
<tr>
 
462
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
463
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
464
</td>
 
465
</tr>
 
466
</tbody>
 
467
</table></div>
 
468
</div>
 
469
<hr>
 
470
<div class="refsect2" lang="en">
 
471
<a name="g-node-append"></a><h3>g_node_append()</h3>
 
472
<pre class="programlisting">#define             g_node_append(parent, node)</pre>
 
473
<p>
 
474
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> as the last child of the given parent.</p>
 
475
<p>
 
476
</p>
 
477
<div class="variablelist"><table border="0">
 
478
<col align="left" valign="top">
 
479
<tbody>
 
480
<tr>
 
481
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
482
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> under
 
483
</td>
 
484
</tr>
 
485
<tr>
 
486
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
487
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to insert
 
488
</td>
 
489
</tr>
 
490
<tr>
 
491
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
492
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
493
</td>
 
494
</tr>
 
495
</tbody>
 
496
</table></div>
 
497
</div>
 
498
<hr>
 
499
<div class="refsect2" lang="en">
 
500
<a name="g-node-prepend"></a><h3>g_node_prepend ()</h3>
 
501
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_prepend                      (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *parent,
 
502
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
503
<p>
 
504
Inserts a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> as the first child of the given parent.</p>
 
505
<p>
 
506
</p>
 
507
<div class="variablelist"><table border="0">
 
508
<col align="left" valign="top">
 
509
<tbody>
 
510
<tr>
 
511
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
512
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> under
 
513
</td>
 
514
</tr>
 
515
<tr>
 
516
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
517
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to insert
 
518
</td>
 
519
</tr>
 
520
<tr>
 
521
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
522
<td> the inserted <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
523
</td>
 
524
</tr>
 
525
</tbody>
 
526
</table></div>
 
527
</div>
 
528
<hr>
 
529
<div class="refsect2" lang="en">
 
530
<a name="g-node-insert-data"></a><h3>g_node_insert_data()</h3>
 
531
<pre class="programlisting">#define             g_node_insert_data(parent, position, data)</pre>
 
532
<p>
 
533
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> at the given position.</p>
 
534
<p>
 
535
</p>
 
536
<div class="variablelist"><table border="0">
 
537
<col align="left" valign="top">
 
538
<tbody>
 
539
<tr>
 
540
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
541
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> under
 
542
</td>
 
543
</tr>
 
544
<tr>
 
545
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
 
546
<td> the position to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> at. If position is -1, 
 
547
    the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> is inserted as the last child of <em class="parameter"><code>parent</code></em>
 
548
</td>
 
549
</tr>
 
550
<tr>
 
551
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
552
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
553
</td>
 
554
</tr>
 
555
<tr>
 
556
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
557
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
558
</td>
 
559
</tr>
 
560
</tbody>
 
561
</table></div>
 
562
</div>
 
563
<hr>
 
564
<div class="refsect2" lang="en">
 
565
<a name="g-node-insert-data-before"></a><h3>g_node_insert_data_before()</h3>
 
566
<pre class="programlisting">#define             g_node_insert_data_before(parent, sibling, data)</pre>
 
567
<p>
 
568
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> before the given sibling.</p>
 
569
<p>
 
570
</p>
 
571
<div class="variablelist"><table border="0">
 
572
<col align="left" valign="top">
 
573
<tbody>
 
574
<tr>
 
575
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
576
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> under
 
577
</td>
 
578
</tr>
 
579
<tr>
 
580
<td><p><span class="term"><em class="parameter"><code>sibling</code></em> :</span></p></td>
 
581
<td> the sibling <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> before
 
582
</td>
 
583
</tr>
 
584
<tr>
 
585
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
586
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
587
</td>
 
588
</tr>
 
589
<tr>
 
590
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
591
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
592
</td>
 
593
</tr>
 
594
</tbody>
 
595
</table></div>
 
596
</div>
 
597
<hr>
 
598
<div class="refsect2" lang="en">
 
599
<a name="g-node-append-data"></a><h3>g_node_append_data()</h3>
 
600
<pre class="programlisting">#define             g_node_append_data(parent, data)</pre>
 
601
<p>
 
602
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> as the last child of the given parent.</p>
 
603
<p>
 
604
</p>
 
605
<div class="variablelist"><table border="0">
 
606
<col align="left" valign="top">
 
607
<tbody>
 
608
<tr>
 
609
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
610
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> under
 
611
</td>
 
612
</tr>
 
613
<tr>
 
614
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
615
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
616
</td>
 
617
</tr>
 
618
<tr>
 
619
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
620
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
621
</td>
 
622
</tr>
 
623
</tbody>
 
624
</table></div>
 
625
</div>
 
626
<hr>
 
627
<div class="refsect2" lang="en">
 
628
<a name="g-node-prepend-data"></a><h3>g_node_prepend_data()</h3>
 
629
<pre class="programlisting">#define             g_node_prepend_data(parent, data)</pre>
 
630
<p>
 
631
Inserts a new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> as the first child of the given parent.</p>
 
632
<p>
 
633
</p>
 
634
<div class="variablelist"><table border="0">
 
635
<col align="left" valign="top">
 
636
<tbody>
 
637
<tr>
 
638
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
639
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to place the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> under
 
640
</td>
 
641
</tr>
 
642
<tr>
 
643
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
644
<td> the data for the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
645
</td>
 
646
</tr>
 
647
<tr>
 
648
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
649
<td> the new <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
650
</td>
 
651
</tr>
 
652
</tbody>
 
653
</table></div>
 
654
</div>
 
655
<hr>
 
656
<div class="refsect2" lang="en">
 
657
<a name="g-node-reverse-children"></a><h3>g_node_reverse_children ()</h3>
 
658
<pre class="programlisting">void                g_node_reverse_children             (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
659
<p>
 
660
Reverses the order of the children of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
692
661
(It doesn't change the order of the grandchildren.)</p>
693
662
<p>
694
 
 
695
663
</p>
696
664
<div class="variablelist"><table border="0">
697
665
<col align="left" valign="top">
698
666
<tbody><tr>
699
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
700
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
667
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
668
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
701
669
</td>
702
670
</tr></tbody>
703
671
</table></div>
704
672
</div>
705
673
<hr>
706
674
<div class="refsect2" lang="en">
707
 
<a name="id3396931"></a><h3>
708
 
<a name="g-node-traverse"></a>g_node_traverse ()</h3>
709
 
<a class="indexterm" name="id3396944"></a><pre class="programlisting">void                g_node_traverse                     (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root,
710
 
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType">GTraverseType</a> order,
711
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
712
 
                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> max_depth,
713
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeTraverseFunc">GNodeTraverseFunc</a> func,
714
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
 
675
<a name="g-node-traverse"></a><h3>g_node_traverse ()</h3>
 
676
<pre class="programlisting">void                g_node_traverse                     (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root,
 
677
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType" title="enum GTraverseType">GTraverseType</a> order,
 
678
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
679
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> max_depth,
 
680
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeTraverseFunc" title="GNodeTraverseFunc ()">GNodeTraverseFunc</a> func,
 
681
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
715
682
<p>
716
 
Traverses a tree starting at the given root <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
683
Traverses a tree starting at the given root <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
717
684
It calls the given function for each node visited.
718
 
The traversal can be halted at any point by returning <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> from <em class="parameter"><code>func</code></em>.</p>
 
685
The traversal can be halted at any point by returning <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a> from <em class="parameter"><code>func</code></em>.</p>
719
686
<p>
720
 
 
721
687
</p>
722
688
<div class="variablelist"><table border="0">
723
689
<col align="left" valign="top">
724
690
<tbody>
725
691
<tr>
726
 
<td><p><span class="term"><em class="parameter"><code>root</code></em>&#160;:</span></p></td>
727
 
<td> the root <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> of the tree to traverse
728
 
</td>
729
 
</tr>
730
 
<tr>
731
 
<td><p><span class="term"><em class="parameter"><code>order</code></em>&#160;:</span></p></td>
732
 
<td> the order in which nodes are visited - <a class="link" href="glib-Balanced-Binary-Trees.html#G-IN-ORDER:CAPS"><code class="literal">G_IN_ORDER</code></a>, 
733
 
    <a class="link" href="glib-Balanced-Binary-Trees.html#G-PRE-ORDER:CAPS"><code class="literal">G_PRE_ORDER</code></a>, <a class="link" href="glib-Balanced-Binary-Trees.html#G-POST-ORDER:CAPS"><code class="literal">G_POST_ORDER</code></a>, or <a class="link" href="glib-Balanced-Binary-Trees.html#G-LEVEL-ORDER:CAPS"><code class="literal">G_LEVEL_ORDER</code></a>.
734
 
</td>
735
 
</tr>
736
 
<tr>
737
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
 
692
<td><p><span class="term"><em class="parameter"><code>root</code></em> :</span></p></td>
 
693
<td> the root <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> of the tree to traverse
 
694
</td>
 
695
</tr>
 
696
<tr>
 
697
<td><p><span class="term"><em class="parameter"><code>order</code></em> :</span></p></td>
 
698
<td> the order in which nodes are visited - <a class="link" href="glib-Balanced-Binary-Trees.html#G-IN-ORDER--CAPS"><code class="literal">G_IN_ORDER</code></a>, 
 
699
    <a class="link" href="glib-Balanced-Binary-Trees.html#G-PRE-ORDER--CAPS"><code class="literal">G_PRE_ORDER</code></a>, <a class="link" href="glib-Balanced-Binary-Trees.html#G-POST-ORDER--CAPS"><code class="literal">G_POST_ORDER</code></a>, or <a class="link" href="glib-Balanced-Binary-Trees.html#G-LEVEL-ORDER--CAPS"><code class="literal">G_LEVEL_ORDER</code></a>.
 
700
</td>
 
701
</tr>
 
702
<tr>
 
703
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
738
704
<td> which types of children are to be visited, one of 
739
 
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL:CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES:CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES:CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
 
705
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL--CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES--CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES--CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
740
706
</td>
741
707
</tr>
742
708
<tr>
743
 
<td><p><span class="term"><em class="parameter"><code>max_depth</code></em>&#160;:</span></p></td>
 
709
<td><p><span class="term"><em class="parameter"><code>max_depth</code></em> :</span></p></td>
744
710
<td> the maximum depth of the traversal. Nodes below this
745
711
    depth will not be visited. If max_depth is -1 all nodes in 
746
712
    the tree are visited. If depth is 1, only the root is visited. 
748
714
</td>
749
715
</tr>
750
716
<tr>
751
 
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
752
 
<td> the function to call for each visited <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
717
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
 
718
<td> the function to call for each visited <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
753
719
</td>
754
720
</tr>
755
721
<tr>
756
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
 
722
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
757
723
<td> user data to pass to the function
758
724
</td>
759
725
</tr>
762
728
</div>
763
729
<hr>
764
730
<div class="refsect2" lang="en">
765
 
<a name="id3397229"></a><h3>
766
 
<a name="GTraverseFlags"></a>enum GTraverseFlags</h3>
767
 
<a class="indexterm" name="id3397242"></a><pre class="programlisting">typedef enum
 
731
<a name="GTraverseFlags"></a><h3>enum GTraverseFlags</h3>
 
732
<pre class="programlisting">typedef enum
768
733
{
769
734
  G_TRAVERSE_LEAVES     = 1 &lt;&lt; 0,
770
735
  G_TRAVERSE_NON_LEAVES = 1 &lt;&lt; 1,
776
741
</pre>
777
742
<p>
778
743
Specifies which nodes are visited during several of the tree functions,
779
 
including <a class="link" href="glib-N-ary-Trees.html#g-node-traverse"><code class="function">g_node_traverse()</code></a> and <a class="link" href="glib-N-ary-Trees.html#g-node-find"><code class="function">g_node_find()</code></a>.
 
744
including <a class="link" href="glib-N-ary-Trees.html#g-node-traverse" title="g_node_traverse ()"><code class="function">g_node_traverse()</code></a> and <a class="link" href="glib-N-ary-Trees.html#g-node-find" title="g_node_find ()"><code class="function">g_node_find()</code></a>.
780
745
</p>
781
746
<div class="variablelist"><table border="0">
782
747
<col align="left" valign="top">
783
748
<tbody>
784
749
<tr>
785
 
<td><p><span class="term"><a name="G-TRAVERSE-LEAVES:CAPS"></a><code class="literal">G_TRAVERSE_LEAVES</code></span></p></td>
 
750
<td><p><a name="G-TRAVERSE-LEAVES--CAPS"></a><span class="term"><code class="literal">G_TRAVERSE_LEAVES</code></span></p></td>
786
751
<td>only leaf nodes should be visited. This name has been
787
 
  introduced in 2.6, for older version use <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAFS:CAPS"><code class="literal">G_TRAVERSE_LEAFS</code></a>.
 
752
  introduced in 2.6, for older version use <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAFS--CAPS"><code class="literal">G_TRAVERSE_LEAFS</code></a>.
788
753
</td>
789
754
</tr>
790
755
<tr>
791
 
<td><p><span class="term"><a name="G-TRAVERSE-NON-LEAVES:CAPS"></a><code class="literal">G_TRAVERSE_NON_LEAVES</code></span></p></td>
 
756
<td><p><a name="G-TRAVERSE-NON-LEAVES--CAPS"></a><span class="term"><code class="literal">G_TRAVERSE_NON_LEAVES</code></span></p></td>
792
757
<td>only non-leaf nodes should be visited. This name 
793
 
  has been introduced in 2.6, for older version use <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAFS:CAPS"><code class="literal">G_TRAVERSE_NON_LEAFS</code></a>.
 
758
  has been introduced in 2.6, for older version use <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAFS--CAPS"><code class="literal">G_TRAVERSE_NON_LEAFS</code></a>.
794
759
</td>
795
760
</tr>
796
761
<tr>
797
 
<td><p><span class="term"><a name="G-TRAVERSE-ALL:CAPS"></a><code class="literal">G_TRAVERSE_ALL</code></span></p></td>
 
762
<td><p><a name="G-TRAVERSE-ALL--CAPS"></a><span class="term"><code class="literal">G_TRAVERSE_ALL</code></span></p></td>
798
763
<td>all nodes should be visited.
799
764
</td>
800
765
</tr>
801
766
<tr>
802
 
<td><p><span class="term"><a name="G-TRAVERSE-MASK:CAPS"></a><code class="literal">G_TRAVERSE_MASK</code></span></p></td>
 
767
<td><p><a name="G-TRAVERSE-MASK--CAPS"></a><span class="term"><code class="literal">G_TRAVERSE_MASK</code></span></p></td>
803
768
<td>a mask of all traverse flags.
804
769
</td>
805
770
</tr>
806
771
<tr>
807
 
<td><p><span class="term"><a name="G-TRAVERSE-LEAFS:CAPS"></a><code class="literal">G_TRAVERSE_LEAFS</code></span></p></td>
808
 
<td>identical to <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES:CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a>.
 
772
<td><p><a name="G-TRAVERSE-LEAFS--CAPS"></a><span class="term"><code class="literal">G_TRAVERSE_LEAFS</code></span></p></td>
 
773
<td>identical to <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES--CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a>.
809
774
</td>
810
775
</tr>
811
776
<tr>
812
 
<td><p><span class="term"><a name="G-TRAVERSE-NON-LEAFS:CAPS"></a><code class="literal">G_TRAVERSE_NON_LEAFS</code></span></p></td>
813
 
<td>identical to <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES:CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>.
814
 
 
 
777
<td><p><a name="G-TRAVERSE-NON-LEAFS--CAPS"></a><span class="term"><code class="literal">G_TRAVERSE_NON_LEAFS</code></span></p></td>
 
778
<td>identical to <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES--CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>.
815
779
</td>
816
780
</tr>
817
781
</tbody>
819
783
</div>
820
784
<hr>
821
785
<div class="refsect2" lang="en">
822
 
<a name="id3397473"></a><h3>
823
 
<a name="GNodeTraverseFunc"></a>GNodeTraverseFunc ()</h3>
824
 
<a class="indexterm" name="id3397487"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            (*GNodeTraverseFunc)                (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
825
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
 
786
<a name="GNodeTraverseFunc"></a><h3>GNodeTraverseFunc ()</h3>
 
787
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            (*GNodeTraverseFunc)                (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
788
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
826
789
<p>
827
 
Specifies the type of function passed to <a class="link" href="glib-N-ary-Trees.html#g-node-traverse"><code class="function">g_node_traverse()</code></a>.
 
790
Specifies the type of function passed to <a class="link" href="glib-N-ary-Trees.html#g-node-traverse" title="g_node_traverse ()"><code class="function">g_node_traverse()</code></a>.
828
791
The function is called with each of the nodes visited, together with the
829
 
user data passed to <a class="link" href="glib-N-ary-Trees.html#g-node-traverse"><code class="function">g_node_traverse()</code></a>.
830
 
If the function returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then the traversal is stopped.
 
792
user data passed to <a class="link" href="glib-N-ary-Trees.html#g-node-traverse" title="g_node_traverse ()"><code class="function">g_node_traverse()</code></a>.
 
793
If the function returns <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a>, then the traversal is stopped.
831
794
</p>
832
795
<div class="variablelist"><table border="0">
833
796
<col align="left" valign="top">
834
797
<tbody>
835
798
<tr>
836
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
837
 
<td>a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
838
 
</td>
839
 
</tr>
840
 
<tr>
841
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
842
 
<td>user data passed to <a class="link" href="glib-N-ary-Trees.html#g-node-traverse"><code class="function">g_node_traverse()</code></a>.
843
 
</td>
844
 
</tr>
845
 
<tr>
846
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
847
 
<td>
848
 
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to stop the traversal.
849
 
 
850
 
 
 
799
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
800
<td>a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
 
801
</td>
 
802
</tr>
 
803
<tr>
 
804
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
805
<td>user data passed to <a class="link" href="glib-N-ary-Trees.html#g-node-traverse" title="g_node_traverse ()"><code class="function">g_node_traverse()</code></a>.
 
806
</td>
 
807
</tr>
 
808
<tr>
 
809
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
810
<td>%TRUE to stop the traversal.
851
811
</td>
852
812
</tr>
853
813
</tbody>
855
815
</div>
856
816
<hr>
857
817
<div class="refsect2" lang="en">
858
 
<a name="id3397626"></a><h3>
859
 
<a name="g-node-children-foreach"></a>g_node_children_foreach ()</h3>
860
 
<a class="indexterm" name="id3397640"></a><pre class="programlisting">void                g_node_children_foreach             (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
861
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
862
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeForeachFunc">GNodeForeachFunc</a> func,
863
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
 
818
<a name="g-node-children-foreach"></a><h3>g_node_children_foreach ()</h3>
 
819
<pre class="programlisting">void                g_node_children_foreach             (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
820
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
821
                                                         <a class="link" href="glib-N-ary-Trees.html#GNodeForeachFunc" title="GNodeForeachFunc ()">GNodeForeachFunc</a> func,
 
822
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
864
823
<p>
865
 
Calls a function for each of the children of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
824
Calls a function for each of the children of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
866
825
Note that it doesn't descend beneath the child nodes.</p>
867
826
<p>
868
 
 
869
827
</p>
870
828
<div class="variablelist"><table border="0">
871
829
<col align="left" valign="top">
872
830
<tbody>
873
831
<tr>
874
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
875
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
832
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
833
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
876
834
</td>
877
835
</tr>
878
836
<tr>
879
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
 
837
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
880
838
<td> which types of children are to be visited, one of 
881
 
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL:CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES:CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES:CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
 
839
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL--CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES--CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES--CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
882
840
</td>
883
841
</tr>
884
842
<tr>
885
 
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
 
843
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
886
844
<td> the function to call for each visited node
887
845
</td>
888
846
</tr>
889
847
<tr>
890
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
 
848
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
891
849
<td> user data to pass to the function
892
850
</td>
893
851
</tr>
896
854
</div>
897
855
<hr>
898
856
<div class="refsect2" lang="en">
899
 
<a name="id3397806"></a><h3>
900
 
<a name="GNodeForeachFunc"></a>GNodeForeachFunc ()</h3>
901
 
<a class="indexterm" name="id3397819"></a><pre class="programlisting">void                (*GNodeForeachFunc)                 (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
902
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
 
857
<a name="GNodeForeachFunc"></a><h3>GNodeForeachFunc ()</h3>
 
858
<pre class="programlisting">void                (*GNodeForeachFunc)                 (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
859
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
903
860
<p>
904
 
Specifies the type of function passed to <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach"><code class="function">g_node_children_foreach()</code></a>.
 
861
Specifies the type of function passed to <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach" title="g_node_children_foreach ()"><code class="function">g_node_children_foreach()</code></a>.
905
862
The function is called with each child node, together with the user data
906
 
passed to <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach"><code class="function">g_node_children_foreach()</code></a>.
 
863
passed to <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach" title="g_node_children_foreach ()"><code class="function">g_node_children_foreach()</code></a>.
907
864
</p>
908
865
<div class="variablelist"><table border="0">
909
866
<col align="left" valign="top">
910
867
<tbody>
911
868
<tr>
912
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
913
 
<td>a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
869
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
870
<td>a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
914
871
</td>
915
872
</tr>
916
873
<tr>
917
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
918
 
<td>user data passed to <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach"><code class="function">g_node_children_foreach()</code></a>.
919
 
 
920
 
 
 
874
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
875
<td>user data passed to <a class="link" href="glib-N-ary-Trees.html#g-node-children-foreach" title="g_node_children_foreach ()"><code class="function">g_node_children_foreach()</code></a>.
921
876
</td>
922
877
</tr>
923
878
</tbody>
925
880
</div>
926
881
<hr>
927
882
<div class="refsect2" lang="en">
928
 
<a name="id3397930"></a><h3>
929
 
<a name="g-node-get-root"></a>g_node_get_root ()</h3>
930
 
<a class="indexterm" name="id3397942"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_get_root                     (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
 
883
<a name="g-node-get-root"></a><h3>g_node_get_root ()</h3>
 
884
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_get_root                     (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
931
885
<p>
932
886
Gets the root of a tree.</p>
933
887
<p>
934
 
 
935
888
</p>
936
889
<div class="variablelist"><table border="0">
937
890
<col align="left" valign="top">
938
891
<tbody>
939
892
<tr>
940
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
941
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
893
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
894
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
942
895
</td>
943
896
</tr>
944
897
<tr>
945
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
898
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
946
899
<td> the root of the tree
947
900
</td>
948
901
</tr>
951
904
</div>
952
905
<hr>
953
906
<div class="refsect2" lang="en">
954
 
<a name="id3398011"></a><h3>
955
 
<a name="g-node-find"></a>g_node_find ()</h3>
956
 
<a class="indexterm" name="id3398023"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_find                         (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root,
957
 
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType">GTraverseType</a> order,
958
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
959
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
960
 
<p>
961
 
Finds a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> in a tree.</p>
962
 
<p>
963
 
 
964
 
</p>
965
 
<div class="variablelist"><table border="0">
966
 
<col align="left" valign="top">
967
 
<tbody>
968
 
<tr>
969
 
<td><p><span class="term"><em class="parameter"><code>root</code></em>&#160;:</span></p></td>
970
 
<td> the root <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> of the tree to search
971
 
</td>
972
 
</tr>
973
 
<tr>
974
 
<td><p><span class="term"><em class="parameter"><code>order</code></em>&#160;:</span></p></td>
975
 
<td> the order in which nodes are visited - <a class="link" href="glib-Balanced-Binary-Trees.html#G-IN-ORDER:CAPS"><code class="literal">G_IN_ORDER</code></a>, 
976
 
    <a class="link" href="glib-Balanced-Binary-Trees.html#G-PRE-ORDER:CAPS"><code class="literal">G_PRE_ORDER</code></a>, <a class="link" href="glib-Balanced-Binary-Trees.html#G-POST-ORDER:CAPS"><code class="literal">G_POST_ORDER</code></a>, or <a class="link" href="glib-Balanced-Binary-Trees.html#G-LEVEL-ORDER:CAPS"><code class="literal">G_LEVEL_ORDER</code></a>
977
 
</td>
978
 
</tr>
979
 
<tr>
980
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
981
 
<td> which types of children are to be searched, one of 
982
 
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL:CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES:CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES:CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
983
 
</td>
984
 
</tr>
985
 
<tr>
986
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
987
 
<td> the data to find
988
 
</td>
989
 
</tr>
990
 
<tr>
991
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
992
 
<td> the found <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the data is not found
993
 
</td>
994
 
</tr>
995
 
</tbody>
996
 
</table></div>
997
 
</div>
998
 
<hr>
999
 
<div class="refsect2" lang="en">
1000
 
<a name="id3398259"></a><h3>
1001
 
<a name="g-node-find-child"></a>g_node_find_child ()</h3>
1002
 
<a class="indexterm" name="id3398272"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_find_child                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
1003
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags,
1004
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
1005
 
<p>
1006
 
Finds the first child of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> with the given data.</p>
1007
 
<p>
1008
 
 
1009
 
</p>
1010
 
<div class="variablelist"><table border="0">
1011
 
<col align="left" valign="top">
1012
 
<tbody>
1013
 
<tr>
1014
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1015
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
1016
 
</td>
1017
 
</tr>
1018
 
<tr>
1019
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
1020
 
<td> which types of children are to be searched, one of 
1021
 
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL:CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES:CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES:CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
1022
 
</td>
1023
 
</tr>
1024
 
<tr>
1025
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
1026
 
<td> the data to find
1027
 
</td>
1028
 
</tr>
1029
 
<tr>
1030
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1031
 
<td> the found child <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the data is not found
1032
 
</td>
1033
 
</tr>
1034
 
</tbody>
1035
 
</table></div>
1036
 
</div>
1037
 
<hr>
1038
 
<div class="refsect2" lang="en">
1039
 
<a name="id3398444"></a><h3>
1040
 
<a name="g-node-child-index"></a>g_node_child_index ()</h3>
1041
 
<a class="indexterm" name="id3398457"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint">gint</a>                g_node_child_index                  (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
1042
 
                                                         <a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> data);</pre>
1043
 
<p>
1044
 
Gets the position of the first child of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> 
 
907
<a name="g-node-find"></a><h3>g_node_find ()</h3>
 
908
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_find                         (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root,
 
909
                                                         <a class="link" href="glib-Balanced-Binary-Trees.html#GTraverseType" title="enum GTraverseType">GTraverseType</a> order,
 
910
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
911
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
 
912
<p>
 
913
Finds a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> in a tree.</p>
 
914
<p>
 
915
</p>
 
916
<div class="variablelist"><table border="0">
 
917
<col align="left" valign="top">
 
918
<tbody>
 
919
<tr>
 
920
<td><p><span class="term"><em class="parameter"><code>root</code></em> :</span></p></td>
 
921
<td> the root <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> of the tree to search
 
922
</td>
 
923
</tr>
 
924
<tr>
 
925
<td><p><span class="term"><em class="parameter"><code>order</code></em> :</span></p></td>
 
926
<td> the order in which nodes are visited - <a class="link" href="glib-Balanced-Binary-Trees.html#G-IN-ORDER--CAPS"><code class="literal">G_IN_ORDER</code></a>, 
 
927
    <a class="link" href="glib-Balanced-Binary-Trees.html#G-PRE-ORDER--CAPS"><code class="literal">G_PRE_ORDER</code></a>, <a class="link" href="glib-Balanced-Binary-Trees.html#G-POST-ORDER--CAPS"><code class="literal">G_POST_ORDER</code></a>, or <a class="link" href="glib-Balanced-Binary-Trees.html#G-LEVEL-ORDER--CAPS"><code class="literal">G_LEVEL_ORDER</code></a>
 
928
</td>
 
929
</tr>
 
930
<tr>
 
931
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
 
932
<td> which types of children are to be searched, one of 
 
933
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL--CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES--CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES--CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
 
934
</td>
 
935
</tr>
 
936
<tr>
 
937
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
938
<td> the data to find
 
939
</td>
 
940
</tr>
 
941
<tr>
 
942
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
943
<td> the found <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> if the data is not found
 
944
</td>
 
945
</tr>
 
946
</tbody>
 
947
</table></div>
 
948
</div>
 
949
<hr>
 
950
<div class="refsect2" lang="en">
 
951
<a name="g-node-find-child"></a><h3>g_node_find_child ()</h3>
 
952
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_find_child                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
953
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags,
 
954
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
 
955
<p>
 
956
Finds the first child of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> with the given data.</p>
 
957
<p>
 
958
</p>
 
959
<div class="variablelist"><table border="0">
 
960
<col align="left" valign="top">
 
961
<tbody>
 
962
<tr>
 
963
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
964
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
965
</td>
 
966
</tr>
 
967
<tr>
 
968
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
 
969
<td> which types of children are to be searched, one of 
 
970
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL--CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES--CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES--CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
 
971
</td>
 
972
</tr>
 
973
<tr>
 
974
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
 
975
<td> the data to find
 
976
</td>
 
977
</tr>
 
978
<tr>
 
979
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
980
<td> the found child <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> if the data is not found
 
981
</td>
 
982
</tr>
 
983
</tbody>
 
984
</table></div>
 
985
</div>
 
986
<hr>
 
987
<div class="refsect2" lang="en">
 
988
<a name="g-node-child-index"></a><h3>g_node_child_index ()</h3>
 
989
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                g_node_child_index                  (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
990
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
 
991
<p>
 
992
Gets the position of the first child of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> 
1045
993
which contains the given data.</p>
1046
994
<p>
1047
 
 
1048
995
</p>
1049
996
<div class="variablelist"><table border="0">
1050
997
<col align="left" valign="top">
1051
998
<tbody>
1052
999
<tr>
1053
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1054
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1000
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1001
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1055
1002
</td>
1056
1003
</tr>
1057
1004
<tr>
1058
 
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
 
1005
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1059
1006
<td> the data to find
1060
1007
</td>
1061
1008
</tr>
1062
1009
<tr>
1063
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1010
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1064
1011
<td> the index of the child of <em class="parameter"><code>node</code></em> which contains 
1065
1012
    <em class="parameter"><code>data</code></em>, or -1 if the data is not found
1066
1013
</td>
1070
1017
</div>
1071
1018
<hr>
1072
1019
<div class="refsect2" lang="en">
1073
 
<a name="id3398568"></a><h3>
1074
 
<a name="g-node-child-position"></a>g_node_child_position ()</h3>
1075
 
<a class="indexterm" name="id3398581"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint">gint</a>                g_node_child_position               (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
1076
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *child);</pre>
 
1020
<a name="g-node-child-position"></a><h3>g_node_child_position ()</h3>
 
1021
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                g_node_child_position               (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
1022
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *child);</pre>
1077
1023
<p>
1078
 
Gets the position of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> with respect to its siblings.
 
1024
Gets the position of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> with respect to its siblings.
1079
1025
<em class="parameter"><code>child</code></em> must be a child of <em class="parameter"><code>node</code></em>. The first child is numbered 0, 
1080
1026
the second 1, and so on.</p>
1081
1027
<p>
1082
 
 
1083
1028
</p>
1084
1029
<div class="variablelist"><table border="0">
1085
1030
<col align="left" valign="top">
1086
1031
<tbody>
1087
1032
<tr>
1088
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1089
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1033
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1034
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1090
1035
</td>
1091
1036
</tr>
1092
1037
<tr>
1093
 
<td><p><span class="term"><em class="parameter"><code>child</code></em>&#160;:</span></p></td>
 
1038
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
1094
1039
<td> a child of <em class="parameter"><code>node</code></em>
1095
1040
</td>
1096
1041
</tr>
1097
1042
<tr>
1098
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1043
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1099
1044
<td> the position of <em class="parameter"><code>child</code></em> with respect to its siblings
1100
1045
</td>
1101
1046
</tr>
1104
1049
</div>
1105
1050
<hr>
1106
1051
<div class="refsect2" lang="en">
1107
 
<a name="id3398705"></a><h3>
1108
 
<a name="g-node-first-child"></a>g_node_first_child()</h3>
1109
 
<a class="indexterm" name="id3398718"></a><pre class="programlisting">#define             g_node_first_child(node)</pre>
1110
 
<p>
1111
 
Gets the first child of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.</p>
1112
 
<p>
1113
 
 
 
1052
<a name="g-node-first-child"></a><h3>g_node_first_child()</h3>
 
1053
<pre class="programlisting">#define             g_node_first_child(node)</pre>
 
1054
<p>
 
1055
Gets the first child of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.</p>
 
1056
<p>
1114
1057
</p>
1115
1058
<div class="variablelist"><table border="0">
1116
1059
<col align="left" valign="top">
1117
1060
<tbody>
1118
1061
<tr>
1119
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1120
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1062
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1063
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1121
1064
</td>
1122
1065
</tr>
1123
1066
<tr>
1124
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1125
 
<td> the first child of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> 
 
1067
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1068
<td> the first child of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> 
1126
1069
    or has no children
1127
1070
</td>
1128
1071
</tr>
1131
1074
</div>
1132
1075
<hr>
1133
1076
<div class="refsect2" lang="en">
1134
 
<a name="id3398814"></a><h3>
1135
 
<a name="g-node-last-child"></a>g_node_last_child ()</h3>
1136
 
<a class="indexterm" name="id3398828"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_last_child                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
1137
 
<p>
1138
 
Gets the last child of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.</p>
1139
 
<p>
1140
 
 
 
1077
<a name="g-node-last-child"></a><h3>g_node_last_child ()</h3>
 
1078
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_last_child                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
1079
<p>
 
1080
Gets the last child of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.</p>
 
1081
<p>
1141
1082
</p>
1142
1083
<div class="variablelist"><table border="0">
1143
1084
<col align="left" valign="top">
1144
1085
<tbody>
1145
1086
<tr>
1146
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1147
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> (must not be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>)
 
1087
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1088
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> (must not be <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a>)
1148
1089
</td>
1149
1090
</tr>
1150
1091
<tr>
1151
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1152
 
<td> the last child of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> has no children
 
1092
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1093
<td> the last child of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> has no children
1153
1094
</td>
1154
1095
</tr>
1155
1096
</tbody>
1157
1098
</div>
1158
1099
<hr>
1159
1100
<div class="refsect2" lang="en">
1160
 
<a name="id3398936"></a><h3>
1161
 
<a name="g-node-nth-child"></a>g_node_nth_child ()</h3>
1162
 
<a class="indexterm" name="id3398948"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_nth_child                    (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
1163
 
                                                         <a class="link" href="glib-Basic-Types.html#guint">guint</a> n);</pre>
 
1101
<a name="g-node-nth-child"></a><h3>g_node_nth_child ()</h3>
 
1102
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_nth_child                    (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
1103
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> n);</pre>
1164
1104
<p>
1165
 
Gets a child of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>, using the given index.
 
1105
Gets a child of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>, using the given index.
1166
1106
The first child is at index 0. If the index is 
1167
 
too big, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
 
1107
too big, <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> is returned.</p>
1168
1108
<p>
1169
 
 
1170
1109
</p>
1171
1110
<div class="variablelist"><table border="0">
1172
1111
<col align="left" valign="top">
1173
1112
<tbody>
1174
1113
<tr>
1175
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1176
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1114
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1115
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1177
1116
</td>
1178
1117
</tr>
1179
1118
<tr>
1180
 
<td><p><span class="term"><em class="parameter"><code>n</code></em>&#160;:</span></p></td>
 
1119
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
1181
1120
<td> the index of the desired child
1182
1121
</td>
1183
1122
</tr>
1184
1123
<tr>
1185
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1124
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1186
1125
<td> the child of <em class="parameter"><code>node</code></em> at index <em class="parameter"><code>n</code></em>
1187
1126
</td>
1188
1127
</tr>
1191
1130
</div>
1192
1131
<hr>
1193
1132
<div class="refsect2" lang="en">
1194
 
<a name="id3399069"></a><h3>
1195
 
<a name="g-node-first-sibling"></a>g_node_first_sibling ()</h3>
1196
 
<a class="indexterm" name="id3399082"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_first_sibling                (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
 
1133
<a name="g-node-first-sibling"></a><h3>g_node_first_sibling ()</h3>
 
1134
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_first_sibling                (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
1197
1135
<p>
1198
 
Gets the first sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
1136
Gets the first sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
1199
1137
This could possibly be the node itself.</p>
1200
1138
<p>
1201
 
 
1202
1139
</p>
1203
1140
<div class="variablelist"><table border="0">
1204
1141
<col align="left" valign="top">
1205
1142
<tbody>
1206
1143
<tr>
1207
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1208
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1144
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1145
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1209
1146
</td>
1210
1147
</tr>
1211
1148
<tr>
1212
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1149
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1213
1150
<td> the first sibling of <em class="parameter"><code>node</code></em>
1214
1151
</td>
1215
1152
</tr>
1218
1155
</div>
1219
1156
<hr>
1220
1157
<div class="refsect2" lang="en">
1221
 
<a name="id3399165"></a><h3>
1222
 
<a name="g-node-next-sibling"></a>g_node_next_sibling()</h3>
1223
 
<a class="indexterm" name="id3399179"></a><pre class="programlisting">#define             g_node_next_sibling(node)</pre>
1224
 
<p>
1225
 
Gets the next sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.</p>
1226
 
<p>
1227
 
 
1228
 
</p>
1229
 
<div class="variablelist"><table border="0">
1230
 
<col align="left" valign="top">
1231
 
<tbody>
1232
 
<tr>
1233
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1234
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
1235
 
</td>
1236
 
</tr>
1237
 
<tr>
1238
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1239
 
<td> the next sibling of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1240
 
</td>
1241
 
</tr>
1242
 
</tbody>
1243
 
</table></div>
1244
 
</div>
1245
 
<hr>
1246
 
<div class="refsect2" lang="en">
1247
 
<a name="id3399274"></a><h3>
1248
 
<a name="g-node-prev-sibling"></a>g_node_prev_sibling()</h3>
1249
 
<a class="indexterm" name="id3399288"></a><pre class="programlisting">#define             g_node_prev_sibling(node)</pre>
1250
 
<p>
1251
 
Gets the previous sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.</p>
1252
 
<p>
1253
 
 
1254
 
</p>
1255
 
<div class="variablelist"><table border="0">
1256
 
<col align="left" valign="top">
1257
 
<tbody>
1258
 
<tr>
1259
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1260
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
1261
 
</td>
1262
 
</tr>
1263
 
<tr>
1264
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1265
 
<td> the previous sibling of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1266
 
</td>
1267
 
</tr>
1268
 
</tbody>
1269
 
</table></div>
1270
 
</div>
1271
 
<hr>
1272
 
<div class="refsect2" lang="en">
1273
 
<a name="id3399383"></a><h3>
1274
 
<a name="g-node-last-sibling"></a>g_node_last_sibling ()</h3>
1275
 
<a class="indexterm" name="id3399396"></a><pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a>*              g_node_last_sibling                 (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
1276
 
<p>
1277
 
Gets the last sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
1158
<a name="g-node-next-sibling"></a><h3>g_node_next_sibling()</h3>
 
1159
<pre class="programlisting">#define             g_node_next_sibling(node)</pre>
 
1160
<p>
 
1161
Gets the next sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.</p>
 
1162
<p>
 
1163
</p>
 
1164
<div class="variablelist"><table border="0">
 
1165
<col align="left" valign="top">
 
1166
<tbody>
 
1167
<tr>
 
1168
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1169
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
1170
</td>
 
1171
</tr>
 
1172
<tr>
 
1173
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1174
<td> the next sibling of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a>
 
1175
</td>
 
1176
</tr>
 
1177
</tbody>
 
1178
</table></div>
 
1179
</div>
 
1180
<hr>
 
1181
<div class="refsect2" lang="en">
 
1182
<a name="g-node-prev-sibling"></a><h3>g_node_prev_sibling()</h3>
 
1183
<pre class="programlisting">#define             g_node_prev_sibling(node)</pre>
 
1184
<p>
 
1185
Gets the previous sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.</p>
 
1186
<p>
 
1187
</p>
 
1188
<div class="variablelist"><table border="0">
 
1189
<col align="left" valign="top">
 
1190
<tbody>
 
1191
<tr>
 
1192
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1193
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
1194
</td>
 
1195
</tr>
 
1196
<tr>
 
1197
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1198
<td> the previous sibling of <em class="parameter"><code>node</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a>
 
1199
</td>
 
1200
</tr>
 
1201
</tbody>
 
1202
</table></div>
 
1203
</div>
 
1204
<hr>
 
1205
<div class="refsect2" lang="en">
 
1206
<a name="g-node-last-sibling"></a><h3>g_node_last_sibling ()</h3>
 
1207
<pre class="programlisting"><a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a>*              g_node_last_sibling                 (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
1208
<p>
 
1209
Gets the last sibling of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
1278
1210
This could possibly be the node itself.</p>
1279
1211
<p>
1280
 
 
1281
1212
</p>
1282
1213
<div class="variablelist"><table border="0">
1283
1214
<col align="left" valign="top">
1284
1215
<tbody>
1285
1216
<tr>
1286
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1287
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1217
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1218
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1288
1219
</td>
1289
1220
</tr>
1290
1221
<tr>
1291
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1222
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1292
1223
<td> the last sibling of <em class="parameter"><code>node</code></em>
1293
1224
</td>
1294
1225
</tr>
1297
1228
</div>
1298
1229
<hr>
1299
1230
<div class="refsect2" lang="en">
1300
 
<a name="id3399478"></a><h3>
1301
 
<a name="G-NODE-IS-LEAF:CAPS"></a>G_NODE_IS_LEAF()</h3>
1302
 
<a class="indexterm" name="id3399491"></a><pre class="programlisting">#define    G_NODE_IS_LEAF(node)   (((GNode*) (node))-&gt;children == NULL)
 
1231
<a name="G-NODE-IS-LEAF--CAPS"></a><h3>G_NODE_IS_LEAF()</h3>
 
1232
<pre class="programlisting">#define      G_NODE_IS_LEAF(node)   (((GNode*) (node))-&gt;children == NULL)
1303
1233
</pre>
1304
1234
<p>
1305
 
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> is a leaf node.</p>
 
1235
Returns <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a> if a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> is a leaf node.</p>
1306
1236
<p>
1307
 
 
1308
1237
</p>
1309
1238
<div class="variablelist"><table border="0">
1310
1239
<col align="left" valign="top">
1311
1240
<tbody>
1312
1241
<tr>
1313
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1314
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1242
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1243
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1315
1244
</td>
1316
1245
</tr>
1317
1246
<tr>
1318
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1319
 
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> is a leaf node 
 
1247
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1248
<td> <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> is a leaf node 
1320
1249
    (i.e. it has no children)
1321
1250
</td>
1322
1251
</tr>
1325
1254
</div>
1326
1255
<hr>
1327
1256
<div class="refsect2" lang="en">
1328
 
<a name="id3399584"></a><h3>
1329
 
<a name="G-NODE-IS-ROOT:CAPS"></a>G_NODE_IS_ROOT()</h3>
1330
 
<a class="indexterm" name="id3399596"></a><pre class="programlisting">#define             G_NODE_IS_ROOT(node)</pre>
1331
 
<p>
1332
 
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> is the root of a tree.</p>
1333
 
<p>
1334
 
 
 
1257
<a name="G-NODE-IS-ROOT--CAPS"></a><h3>G_NODE_IS_ROOT()</h3>
 
1258
<pre class="programlisting">#define             G_NODE_IS_ROOT(node)</pre>
 
1259
<p>
 
1260
Returns <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a> if a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> is the root of a tree.</p>
 
1261
<p>
1335
1262
</p>
1336
1263
<div class="variablelist"><table border="0">
1337
1264
<col align="left" valign="top">
1338
1265
<tbody>
1339
1266
<tr>
1340
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1341
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1267
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1268
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1342
1269
</td>
1343
1270
</tr>
1344
1271
<tr>
1345
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1346
 
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> is the root of a tree 
 
1272
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1273
<td> <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> is the root of a tree 
1347
1274
    (i.e. it has no parent or siblings)
1348
1275
</td>
1349
1276
</tr>
1352
1279
</div>
1353
1280
<hr>
1354
1281
<div class="refsect2" lang="en">
1355
 
<a name="id3399689"></a><h3>
1356
 
<a name="g-node-depth"></a>g_node_depth ()</h3>
1357
 
<a class="indexterm" name="id3399701"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint">guint</a>               g_node_depth                        (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
 
1282
<a name="g-node-depth"></a><h3>g_node_depth ()</h3>
 
1283
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_node_depth                        (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
1358
1284
<p>
1359
 
Gets the depth of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
 
1285
Gets the depth of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
1360
1286
</p>
1361
1287
<p>
1362
 
If <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> the depth is 0. The root node has a depth of 1.
 
1288
If <em class="parameter"><code>node</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a> the depth is 0. The root node has a depth of 1.
1363
1289
For the children of the root node the depth is 2. And so on.</p>
1364
1290
<p>
1365
 
 
1366
1291
</p>
1367
1292
<div class="variablelist"><table border="0">
1368
1293
<col align="left" valign="top">
1369
1294
<tbody>
1370
1295
<tr>
1371
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1372
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1296
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1297
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1373
1298
</td>
1374
1299
</tr>
1375
1300
<tr>
1376
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1377
 
<td> the depth of the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1301
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1302
<td> the depth of the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1378
1303
</td>
1379
1304
</tr>
1380
1305
</tbody>
1382
1307
</div>
1383
1308
<hr>
1384
1309
<div class="refsect2" lang="en">
1385
 
<a name="id3399806"></a><h3>
1386
 
<a name="g-node-n-nodes"></a>g_node_n_nodes ()</h3>
1387
 
<a class="indexterm" name="id3399819"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint">guint</a>               g_node_n_nodes                      (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root,
1388
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags">GTraverseFlags</a> flags);</pre>
 
1310
<a name="g-node-n-nodes"></a><h3>g_node_n_nodes ()</h3>
 
1311
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_node_n_nodes                      (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root,
 
1312
                                                         <a class="link" href="glib-N-ary-Trees.html#GTraverseFlags" title="enum GTraverseFlags">GTraverseFlags</a> flags);</pre>
1389
1313
<p>
1390
1314
Gets the number of nodes in a tree.</p>
1391
1315
<p>
1392
 
 
1393
1316
</p>
1394
1317
<div class="variablelist"><table border="0">
1395
1318
<col align="left" valign="top">
1396
1319
<tbody>
1397
1320
<tr>
1398
 
<td><p><span class="term"><em class="parameter"><code>root</code></em>&#160;:</span></p></td>
1399
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1321
<td><p><span class="term"><em class="parameter"><code>root</code></em> :</span></p></td>
 
1322
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1400
1323
</td>
1401
1324
</tr>
1402
1325
<tr>
1403
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
 
1326
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
1404
1327
<td> which types of children are to be counted, one of 
1405
 
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL:CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES:CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES:CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
 
1328
    <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-ALL--CAPS"><code class="literal">G_TRAVERSE_ALL</code></a>, <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-LEAVES--CAPS"><code class="literal">G_TRAVERSE_LEAVES</code></a> and <a class="link" href="glib-N-ary-Trees.html#G-TRAVERSE-NON-LEAVES--CAPS"><code class="literal">G_TRAVERSE_NON_LEAVES</code></a>
1406
1329
</td>
1407
1330
</tr>
1408
1331
<tr>
1409
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1332
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1410
1333
<td> the number of nodes in the tree
1411
1334
</td>
1412
1335
</tr>
1415
1338
</div>
1416
1339
<hr>
1417
1340
<div class="refsect2" lang="en">
1418
 
<a name="id3399942"></a><h3>
1419
 
<a name="g-node-n-children"></a>g_node_n_children ()</h3>
1420
 
<a class="indexterm" name="id3399955"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint">guint</a>               g_node_n_children                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
1421
 
<p>
1422
 
Gets the number of children of a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.</p>
1423
 
<p>
1424
 
 
 
1341
<a name="g-node-n-children"></a><h3>g_node_n_children ()</h3>
 
1342
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_node_n_children                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
1343
<p>
 
1344
Gets the number of children of a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.</p>
 
1345
<p>
1425
1346
</p>
1426
1347
<div class="variablelist"><table border="0">
1427
1348
<col align="left" valign="top">
1428
1349
<tbody>
1429
1350
<tr>
1430
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1431
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1351
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1352
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1432
1353
</td>
1433
1354
</tr>
1434
1355
<tr>
1435
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1356
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1436
1357
<td> the number of children of <em class="parameter"><code>node</code></em>
1437
1358
</td>
1438
1359
</tr>
1441
1362
</div>
1442
1363
<hr>
1443
1364
<div class="refsect2" lang="en">
1444
 
<a name="id3400037"></a><h3>
1445
 
<a name="g-node-is-ancestor"></a>g_node_is_ancestor ()</h3>
1446
 
<a class="indexterm" name="id3400050"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_node_is_ancestor                  (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node,
1447
 
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *descendant);</pre>
 
1365
<a name="g-node-is-ancestor"></a><h3>g_node_is_ancestor ()</h3>
 
1366
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_node_is_ancestor                  (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node,
 
1367
                                                         <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *descendant);</pre>
1448
1368
<p>
1449
 
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em> is an ancestor of <em class="parameter"><code>descendant</code></em>.
 
1369
Returns <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em> is an ancestor of <em class="parameter"><code>descendant</code></em>.
1450
1370
This is true if node is the parent of <em class="parameter"><code>descendant</code></em>, 
1451
1371
or if node is the grandparent of <em class="parameter"><code>descendant</code></em> etc.</p>
1452
1372
<p>
1453
 
 
1454
1373
</p>
1455
1374
<div class="variablelist"><table border="0">
1456
1375
<col align="left" valign="top">
1457
1376
<tbody>
1458
1377
<tr>
1459
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1460
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
1461
 
</td>
1462
 
</tr>
1463
 
<tr>
1464
 
<td><p><span class="term"><em class="parameter"><code>descendant</code></em>&#160;:</span></p></td>
1465
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
1466
 
</td>
1467
 
</tr>
1468
 
<tr>
1469
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1470
 
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em> is an ancestor of <em class="parameter"><code>descendant</code></em>
 
1378
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1379
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
1380
</td>
 
1381
</tr>
 
1382
<tr>
 
1383
<td><p><span class="term"><em class="parameter"><code>descendant</code></em> :</span></p></td>
 
1384
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
 
1385
</td>
 
1386
</tr>
 
1387
<tr>
 
1388
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1389
<td> <a class="link" href="glib-Standard-Macros.html#TRUE--CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em> is an ancestor of <em class="parameter"><code>descendant</code></em>
1471
1390
</td>
1472
1391
</tr>
1473
1392
</tbody>
1475
1394
</div>
1476
1395
<hr>
1477
1396
<div class="refsect2" lang="en">
1478
 
<a name="id3400204"></a><h3>
1479
 
<a name="g-node-max-height"></a>g_node_max_height ()</h3>
1480
 
<a class="indexterm" name="id3400217"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint">guint</a>               g_node_max_height                   (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root);</pre>
 
1397
<a name="g-node-max-height"></a><h3>g_node_max_height ()</h3>
 
1398
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_node_max_height                   (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root);</pre>
1481
1399
<p>
1482
 
Gets the maximum height of all branches beneath a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>.
1483
 
This is the maximum distance from the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to all leaf nodes.
 
1400
Gets the maximum height of all branches beneath a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>.
 
1401
This is the maximum distance from the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to all leaf nodes.
1484
1402
</p>
1485
1403
<p>
1486
 
If <em class="parameter"><code>root</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, 0 is returned. If <em class="parameter"><code>root</code></em> has no children, 
 
1404
If <em class="parameter"><code>root</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL--CAPS" title="NULL"><code class="literal">NULL</code></a>, 0 is returned. If <em class="parameter"><code>root</code></em> has no children, 
1487
1405
1 is returned. If <em class="parameter"><code>root</code></em> has children, 2 is returned. And so on.</p>
1488
1406
<p>
1489
 
 
1490
1407
</p>
1491
1408
<div class="variablelist"><table border="0">
1492
1409
<col align="left" valign="top">
1493
1410
<tbody>
1494
1411
<tr>
1495
 
<td><p><span class="term"><em class="parameter"><code>root</code></em>&#160;:</span></p></td>
1496
 
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a>
 
1412
<td><p><span class="term"><em class="parameter"><code>root</code></em> :</span></p></td>
 
1413
<td> a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a>
1497
1414
</td>
1498
1415
</tr>
1499
1416
<tr>
1500
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1417
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1501
1418
<td> the maximum height of the tree beneath <em class="parameter"><code>root</code></em>
1502
1419
</td>
1503
1420
</tr>
1506
1423
</div>
1507
1424
<hr>
1508
1425
<div class="refsect2" lang="en">
1509
 
<a name="id3400342"></a><h3>
1510
 
<a name="g-node-unlink"></a>g_node_unlink ()</h3>
1511
 
<a class="indexterm" name="id3400354"></a><pre class="programlisting">void                g_node_unlink                       (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *node);</pre>
1512
 
<p>
1513
 
Unlinks a <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> from a tree, resulting in two separate trees.</p>
1514
 
<p>
1515
 
 
 
1426
<a name="g-node-unlink"></a><h3>g_node_unlink ()</h3>
 
1427
<pre class="programlisting">void                g_node_unlink                       (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *node);</pre>
 
1428
<p>
 
1429
Unlinks a <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> from a tree, resulting in two separate trees.</p>
 
1430
<p>
1516
1431
</p>
1517
1432
<div class="variablelist"><table border="0">
1518
1433
<col align="left" valign="top">
1519
1434
<tbody><tr>
1520
 
<td><p><span class="term"><em class="parameter"><code>node</code></em>&#160;:</span></p></td>
1521
 
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> to unlink, which becomes the root of a new tree
 
1435
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
 
1436
<td> the <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> to unlink, which becomes the root of a new tree
1522
1437
</td>
1523
1438
</tr></tbody>
1524
1439
</table></div>
1525
1440
</div>
1526
1441
<hr>
1527
1442
<div class="refsect2" lang="en">
1528
 
<a name="id3400421"></a><h3>
1529
 
<a name="g-node-destroy"></a>g_node_destroy ()</h3>
1530
 
<a class="indexterm" name="id3400434"></a><pre class="programlisting">void                g_node_destroy                      (<a class="link" href="glib-N-ary-Trees.html#GNode">GNode</a> *root);</pre>
 
1443
<a name="g-node-destroy"></a><h3>g_node_destroy ()</h3>
 
1444
<pre class="programlisting">void                g_node_destroy                      (<a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode">GNode</a> *root);</pre>
1531
1445
<p>
1532
1446
Removes <em class="parameter"><code>root</code></em> and its children from the tree, freeing any memory
1533
1447
allocated.</p>
1534
1448
<p>
1535
 
 
1536
1449
</p>
1537
1450
<div class="variablelist"><table border="0">
1538
1451
<col align="left" valign="top">
1539
1452
<tbody><tr>
1540
 
<td><p><span class="term"><em class="parameter"><code>root</code></em>&#160;:</span></p></td>
 
1453
<td><p><span class="term"><em class="parameter"><code>root</code></em> :</span></p></td>
1541
1454
<td> the root of the tree/subtree to destroy
1542
1455
</td>
1543
1456
</tr></tbody>
1545
1458
</div>
1546
1459
<hr>
1547
1460
<div class="refsect2" lang="en">
1548
 
<a name="id3400491"></a><h3>
1549
 
<a name="g-node-push-allocator"></a>g_node_push_allocator ()</h3>
1550
 
<a class="indexterm" name="id3400506"></a><pre class="programlisting">void                g_node_push_allocator               (<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> dummy);</pre>
 
1461
<a name="g-node-push-allocator"></a><h3>g_node_push_allocator ()</h3>
 
1462
<pre class="programlisting">void                g_node_push_allocator               (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> dummy);</pre>
1551
1463
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1552
1464
<h3 class="title">Warning</h3>
1553
 
<p><code class="literal">g_node_push_allocator</code> has been deprecated since version 2.10 and should not be used in newly-written code. It does nothing, since <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> has been converted 
 
1465
<p><code class="literal">g_node_push_allocator</code> has been deprecated since version 2.10 and should not be used in newly-written code. It does nothing, since <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> has been converted
1554
1466
  to the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice allocator</a></p>
1555
1467
</div>
1556
1468
<p>
1557
 
Sets the allocator to use to allocate <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> elements.
1558
 
Use <a class="link" href="glib-N-ary-Trees.html#g-node-pop-allocator"><code class="function">g_node_pop_allocator()</code></a> to restore the previous allocator.
 
1469
Sets the allocator to use to allocate <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> elements.
 
1470
Use <a class="link" href="glib-N-ary-Trees.html#g-node-pop-allocator" title="g_node_pop_allocator ()"><code class="function">g_node_pop_allocator()</code></a> to restore the previous allocator.
1559
1471
</p>
1560
1472
<p>
1561
1473
Note that this function is not available if GLib has been compiled
1564
1476
<div class="variablelist"><table border="0">
1565
1477
<col align="left" valign="top">
1566
1478
<tbody><tr>
1567
 
<td><p><span class="term"><em class="parameter"><code>dummy</code></em>&#160;:</span></p></td>
1568
 
<td>the <a class="link" href="glib-Memory-Allocators.html#GAllocator"><span class="type">GAllocator</span></a> to use when allocating <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> elements.
 
1479
<td><p><span class="term"><em class="parameter"><code>dummy</code></em> :</span></p></td>
 
1480
<td>the <a class="link" href="glib-Memory-Allocators.html#GAllocator" title="GAllocator"><span class="type">GAllocator</span></a> to use when allocating <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> elements.
1569
1481
</td>
1570
1482
</tr></tbody>
1571
1483
</table></div>
1572
1484
</div>
1573
1485
<hr>
1574
1486
<div class="refsect2" lang="en">
1575
 
<a name="id3400626"></a><h3>
1576
 
<a name="g-node-pop-allocator"></a>g_node_pop_allocator ()</h3>
1577
 
<a class="indexterm" name="id3400641"></a><pre class="programlisting">void                g_node_pop_allocator                (void);</pre>
 
1487
<a name="g-node-pop-allocator"></a><h3>g_node_pop_allocator ()</h3>
 
1488
<pre class="programlisting">void                g_node_pop_allocator                (void);</pre>
1578
1489
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1579
1490
<h3 class="title">Warning</h3>
1580
 
<p><code class="literal">g_node_pop_allocator</code> has been deprecated since version 2.10 and should not be used in newly-written code. It does nothing, since <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> has been converted 
 
1491
<p><code class="literal">g_node_pop_allocator</code> has been deprecated since version 2.10 and should not be used in newly-written code. It does nothing, since <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> has been converted
1581
1492
  to the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice allocator</a></p>
1582
1493
</div>
1583
1494
<p>
1584
 
Restores the previous <a class="link" href="glib-Memory-Allocators.html#GAllocator"><span class="type">GAllocator</span></a>, used when allocating <a class="link" href="glib-N-ary-Trees.html#GNode"><span class="type">GNode</span></a> elements.
 
1495
Restores the previous <a class="link" href="glib-Memory-Allocators.html#GAllocator" title="GAllocator"><span class="type">GAllocator</span></a>, used when allocating <a class="link" href="glib-N-ary-Trees.html#GNode" title="GNode"><span class="type">GNode</span></a> elements.
1585
1496
</p>
1586
1497
<p>
1587
1498
Note that this function is not available if GLib has been compiled
1589
1500
</p>
1590
1501
</div>
1591
1502
</div>
1592
 
<div class="refsect1" lang="en">
1593
 
<a name="id3400716"></a><div class="refsect2" lang="en"><a name="id3400717"></a></div>
 
1503
</div>
 
1504
<div class="footer">
1594
1505
<hr>
1595
 
<div class="refsect2" lang="en"><a name="id3400718"></a></div>
1596
 
</div>
1597
 
</div>
 
1506
          Generated by GTK-Doc V1.11</div>
1598
1507
</body>
1599
1508
</html>