1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>pugixml: pugi::xpath_node Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6-NO -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="namespacepugi.html">pugi</a>::<a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a></div>
<h1>pugi::xpath_node Class Reference</h1><!-- doxytag: class="pugi::xpath_node" -->Collaboration diagram for pugi::xpath_node:<p><center><img src="classpugi_1_1xpath__node__coll__graph.png" border="0" usemap="#pugi_1_1xpath__node__coll__map" alt="Collaboration graph"></center>
<map name="pugi_1_1xpath__node__coll__map">
<area href="classpugi_1_1xml__node.html" shape="rect" coords="22,98,134,125" alt="">
<area href="classpugi_1_1xml__attribute.html" shape="rect" coords="166,98,300,125" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classpugi_1_1xpath__node-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
XPath node class.
<p>
XPath defines node to be either <a class="el" href="classpugi_1_1xml__node.html">xml_node</a> or <a class="el" href="classpugi_1_1xml__attribute.html">xml_attribute</a> in pugixml terminology, so <a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a> is either <a class="el" href="classpugi_1_1xml__node.html">xml_node</a> or <a class="el" href="classpugi_1_1xml__attribute.html">xml_attribute</a>.
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c744d6466fee3a062ba3bb928331031e"></a><!-- doxytag: member="pugi::xpath_node::xpath_node" ref="c744d6466fee3a062ba3bb928331031e" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#c744d6466fee3a062ba3bb928331031e">xpath_node</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct empty XPath node. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#c19206fda68c2c67ff2b42009debe74f">xpath_node</a> (const <a class="el" href="classpugi_1_1xml__node.html">xml_node</a> &node)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct XPath node from XML node. <a href="#c19206fda68c2c67ff2b42009debe74f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#5cc7cfd8ceb6cae4be45b2f29fe57f34">xpath_node</a> (const <a class="el" href="classpugi_1_1xml__attribute.html">xml_attribute</a> &attribute, const <a class="el" href="classpugi_1_1xml__node.html">xml_node</a> &parent)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct XPath node from XML attribute. <a href="#5cc7cfd8ceb6cae4be45b2f29fe57f34"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classpugi_1_1xml__node.html">xml_node</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#733aedafcaac5d4c0f18cfd2e2fac8d5">node</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get XML node, if any. <a href="#733aedafcaac5d4c0f18cfd2e2fac8d5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classpugi_1_1xml__attribute.html">xml_attribute</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#1d4b104aa945a3364dd45f8d6a9f7031">attribute</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get XML attribute, if any. <a href="#1d4b104aa945a3364dd45f8d6a9f7031"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classpugi_1_1xml__node.html">xml_node</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#7e293086926c36f781beb0f25629c614">parent</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get parent of contained XML attribute, if any. <a href="#7e293086926c36f781beb0f25629c614"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#4993b929cb8ae5c8a759788e0c5d199c">operator unspecified_bool_type</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Safe bool conversion. <a href="#4993b929cb8ae5c8a759788e0c5d199c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#391f897a4be5b6c4a84b97bbbb680c63">operator==</a> (const <a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a> &n) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compares two XPath nodes. <a href="#391f897a4be5b6c4a84b97bbbb680c63"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html#1d681c030d20036dc89530a4d1fbea59">operator!=</a> (const <a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a> &n) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compares two XPath nodes. <a href="#1d681c030d20036dc89530a4d1fbea59"></a><br></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="c19206fda68c2c67ff2b42009debe74f"></a><!-- doxytag: member="pugi::xpath_node::xpath_node" ref="c19206fda68c2c67ff2b42009debe74f" args="(const xml_node &node)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">pugi::xpath_node::xpath_node </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classpugi_1_1xml__node.html">xml_node</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>node</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Construct XPath node from XML node.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>- XML node </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="5cc7cfd8ceb6cae4be45b2f29fe57f34"></a><!-- doxytag: member="pugi::xpath_node::xpath_node" ref="5cc7cfd8ceb6cae4be45b2f29fe57f34" args="(const xml_attribute &attribute, const xml_node &parent)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">pugi::xpath_node::xpath_node </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classpugi_1_1xml__attribute.html">xml_attribute</a> & </td>
<td class="mdname" nowrap> <em>attribute</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="classpugi_1_1xml__node.html">xml_node</a> & </td>
<td class="mdname" nowrap> <em>parent</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Construct XPath node from XML attribute.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>- XML attribute </td></tr>
<tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>- attribute's parent node </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="733aedafcaac5d4c0f18cfd2e2fac8d5"></a><!-- doxytag: member="pugi::xpath_node::node" ref="733aedafcaac5d4c0f18cfd2e2fac8d5" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classpugi_1_1xml__node.html">xml_node</a> pugi::xpath_node::node </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get XML node, if any.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>contained XML node, empty node otherwise </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="1d4b104aa945a3364dd45f8d6a9f7031"></a><!-- doxytag: member="pugi::xpath_node::attribute" ref="1d4b104aa945a3364dd45f8d6a9f7031" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classpugi_1_1xml__attribute.html">xml_attribute</a> pugi::xpath_node::attribute </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get XML attribute, if any.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>contained XML attribute, if any, empty attribute otherwise </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="7e293086926c36f781beb0f25629c614"></a><!-- doxytag: member="pugi::xpath_node::parent" ref="7e293086926c36f781beb0f25629c614" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classpugi_1_1xml__node.html">xml_node</a> pugi::xpath_node::parent </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get parent of contained XML attribute, if any.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>parent of contained XML attribute, if any, empty node otherwise </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="4993b929cb8ae5c8a759788e0c5d199c"></a><!-- doxytag: member="pugi::xpath_node::operator unspecified_bool_type" ref="4993b929cb8ae5c8a759788e0c5d199c" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">pugi::xpath_node::operator unspecified_bool_type </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Safe bool conversion.
<p>
Allows <a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a> to be used in a context where boolean variable is expected, such as 'if (node)'. </td>
</tr>
</table>
<a class="anchor" name="391f897a4be5b6c4a84b97bbbb680c63"></a><!-- doxytag: member="pugi::xpath_node::operator==" ref="391f897a4be5b6c4a84b97bbbb680c63" args="(const xpath_node &n) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool pugi::xpath_node::operator== </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Compares two XPath nodes.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>- XPath node to compare to </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>comparison result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="1d681c030d20036dc89530a4d1fbea59"></a><!-- doxytag: member="pugi::xpath_node::operator!=" ref="1d681c030d20036dc89530a4d1fbea59" args="(const xpath_node &n) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool pugi::xpath_node::operator!= </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Compares two XPath nodes.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>- XPath node to compare to </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>comparison result </dd></dl>
</td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Wed Feb 21 22:19:52 2007 for pugixml by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
</body>
</html>
|