File: classWt_1_1WModelIndex.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (433 lines) | stat: -rw-r--r-- 25,710 bytes parent folder | download
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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<!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>Wt: Wt::WModelIndex Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WModelIndex Class Reference<br>
<small>
[<a class="el" href="group__modelview.html">Model/view system</a>]</small>
</h1><!-- doxytag: class="Wt::WModelIndex" -->An index to a data item in a data model.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WModelIndex&gt;</code>
<p>

<p>
<a href="classWt_1_1WModelIndex-members.html">List of all members.</a><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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#29431c83f8ed71654e213ec4aae21813">WModelIndex</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an invalid <a class="el" href="classWt_1_1WModelIndex.html" title="An index to a data item in a data model.">WModelIndex</a>.  <a href="#29431c83f8ed71654e213ec4aae21813"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#0e6568dd7113662c3c378e2084729581">column</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the column for this model index.  <a href="#0e6568dd7113662c3c378e2084729581"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#a4f1385223391c46ee200a57672f6046">row</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the row for this model index.  <a href="#a4f1385223391c46ee200a57672f6046"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#44aabe692bba87ba144c1ab9a7f98eb3">internalPointer</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the internal pointer.  <a href="#44aabe692bba87ba144c1ab9a7f98eb3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#f0fedac552dfeb6162f10d26d0876c85">internalId</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the internal id.  <a href="#f0fedac552dfeb6162f10d26d0876c85"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#2c01a7ea6cbb423eec3f4d12f26324c7">child</a> (int row, int column) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a model index for a child item.  <a href="#2c01a7ea6cbb423eec3f4d12f26324c7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#0e6380caae0e785fdea9e30e0a95eec9">parent</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an index to the parent.  <a href="#0e6380caae0e785fdea9e30e0a95eec9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">boost::any&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#7f05920329ca4b7fdbb10931afdb634e">data</a> (int role=DisplayRole) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns data in the model at this index.  <a href="#7f05920329ca4b7fdbb10931afdb634e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">WFlags&lt; <a class="el" href="group__modelview.html#g1d77c4de293aebfacbdde124de06b8b0">ItemFlag</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#04877832f757772b8dc7e6b30fb3638c">flags</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the flags for this item.  <a href="#04877832f757772b8dc7e6b30fb3638c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#1d4b05ee51c5c6961d6123565fd77c82">isValid</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether the index is a real valid index.  <a href="#1d4b05ee51c5c6961d6123565fd77c82"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#9fe91b75030a8a7373e3262fbbc6cad6">model</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the model to which this (valid) index is bound.  <a href="#9fe91b75030a8a7373e3262fbbc6cad6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#6bb6b3624c4d75e3a495860e46c04f9e">operator==</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;other) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#6bb6b3624c4d75e3a495860e46c04f9e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#ce2743acada845b3d4912e70c9787eac">operator!=</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;other) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#ce2743acada845b3d4912e70c9787eac"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WModelIndex.html#29a0a0ab3e961b8087d95b7c62555cd1">operator&lt;</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;other) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#29a0a0ab3e961b8087d95b7c62555cd1"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An index to a data item in a data model. 
<p>
Indexes are used to indicate a particular item in a <a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt&#39;s view classes.">WAbstractItemModel</a>. An index points to the item by identifying its row and column location within a parent model index.<p>
An index is immutable. The default constructor creates an <em>invalid index</em>, which by convention indicates the parent of top level indexes. Thus, a model that specifies only a list or table of data (but no hierarchical data) would have as valid indexes only indexes that specify the <em>invalid</em> model index as parent.<p>
Valid indexes are created by the model, within the protected <a class="el" href="classWt_1_1WAbstractItemModel.html#c837a73fe423255035ffb076946de122" title="Creates a model index for the given row and column.">WAbstractItemModel::createIndex()</a> methods. In this way, models can define an internal pointer or id suitable for identifying items in the model.<p>
Upon the model's choice, model indexes for hierarchical models may have an internal Id represented by a int64_t (<a class="el" href="classWt_1_1WModelIndex.html#f0fedac552dfeb6162f10d26d0876c85" title="Returns the internal id.">internalId()</a>), a pointer (<a class="el" href="classWt_1_1WModelIndex.html#44aabe692bba87ba144c1ab9a7f98eb3" title="Returns the internal pointer.">internalPointer()</a>).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt&#39;s view classes.">WAbstractItemModel</a> </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="29431c83f8ed71654e213ec4aae21813"></a><!-- doxytag: member="Wt::WModelIndex::WModelIndex" ref="29431c83f8ed71654e213ec4aae21813" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WModelIndex::WModelIndex           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create an invalid <a class="el" href="classWt_1_1WModelIndex.html" title="An index to a data item in a data model.">WModelIndex</a>. 
<p>
Returns a model index for which <a class="el" href="classWt_1_1WModelIndex.html#1d4b05ee51c5c6961d6123565fd77c82" title="Returns whether the index is a real valid index.">isValid()</a> return <code>false</code>. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="0e6568dd7113662c3c378e2084729581"></a><!-- doxytag: member="Wt::WModelIndex::column" ref="0e6568dd7113662c3c378e2084729581" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WModelIndex::column           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the column for this model index. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WModelIndex.html#a4f1385223391c46ee200a57672f6046" title="Returns the row for this model index.">row()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="a4f1385223391c46ee200a57672f6046"></a><!-- doxytag: member="Wt::WModelIndex::row" ref="a4f1385223391c46ee200a57672f6046" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WModelIndex::row           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the row for this model index. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WModelIndex.html#0e6568dd7113662c3c378e2084729581" title="Returns the column for this model index.">column()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="44aabe692bba87ba144c1ab9a7f98eb3"></a><!-- doxytag: member="Wt::WModelIndex::internalPointer" ref="44aabe692bba87ba144c1ab9a7f98eb3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* Wt::WModelIndex::internalPointer           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the internal pointer. 
<p>
The internal pointer is used by the model to retrieve the corresponding data.<p>
This is only defined when the model created the index using <a class="el" href="classWt_1_1WAbstractItemModel.html#c837a73fe423255035ffb076946de122" title="Creates a model index for the given row and column.">WAbstractItemModel::createIndex(int, int, void *) const</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WModelIndex.html#f0fedac552dfeb6162f10d26d0876c85" title="Returns the internal id.">internalId()</a>, <p>
<a class="el" href="classWt_1_1WAbstractItemModel.html#c837a73fe423255035ffb076946de122" title="Creates a model index for the given row and column.">WAbstractItemModel::createIndex(int, int, void *) const</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="f0fedac552dfeb6162f10d26d0876c85"></a><!-- doxytag: member="Wt::WModelIndex::internalId" ref="f0fedac552dfeb6162f10d26d0876c85" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t Wt::WModelIndex::internalId           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the internal id. 
<p>
The internal id is used by the model to retrieve the corresponding data.<p>
This is only defined when the model created the index using <a class="el" href="classWt_1_1WAbstractItemModel.html#ca9c0c10479b66b5f6742a9a31aa9e9f" title="Creates a model index for the given row and column.">WAbstractItemModel::createIndex(int, int, uint64_t) const</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WModelIndex.html#44aabe692bba87ba144c1ab9a7f98eb3" title="Returns the internal pointer.">internalPointer()</a> <p>
<a class="el" href="classWt_1_1WAbstractItemModel.html#ca9c0c10479b66b5f6742a9a31aa9e9f" title="Creates a model index for the given row and column.">WAbstractItemModel::createIndex(int, int, uint64_t) const</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2c01a7ea6cbb423eec3f4d12f26324c7"></a><!-- doxytag: member="Wt::WModelIndex::child" ref="2c01a7ea6cbb423eec3f4d12f26324c7" args="(int row, int column) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> Wt::WModelIndex::child           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a model index for a child item. 
<p>
This is a convenience method, and is only defined for indexes that are valid().<p>
It has the same function as <a class="el" href="classWt_1_1WAbstractItemModel.html#83f37bf04b8574b328c139b02523b8cb" title="Returns the child index for the given row and column.">WAbstractItemModel::index()</a> but is less general because the latter expression may also be used to retrieve top level children, i.e. when <code>index</code> is invalid.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#83f37bf04b8574b328c139b02523b8cb" title="Returns the child index for the given row and column.">WAbstractItemModel::index()</a>, <a class="el" href="classWt_1_1WModelIndex.html#1d4b05ee51c5c6961d6123565fd77c82" title="Returns whether the index is a real valid index.">isValid()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0e6380caae0e785fdea9e30e0a95eec9"></a><!-- doxytag: member="Wt::WModelIndex::parent" ref="0e6380caae0e785fdea9e30e0a95eec9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> Wt::WModelIndex::parent           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns an index to the parent. 
<p>
This is a convenience method for <a class="el" href="classWt_1_1WAbstractItemModel.html#da454d45706ca0c1a0921dedd351c48c" title="Returns the parent for a model index.">WAbstractItemModel::parent()</a>.<p>
For a top level data item, the <a class="el" href="classWt_1_1WModelIndex.html#0e6380caae0e785fdea9e30e0a95eec9" title="Returns an index to the parent.">parent()</a> is an invalid index (see <a class="el" href="classWt_1_1WModelIndex.html#29431c83f8ed71654e213ec4aae21813" title="Create an invalid WModelIndex.">WModelIndex()</a>).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#da454d45706ca0c1a0921dedd351c48c" title="Returns the parent for a model index.">WAbstractItemModel::parent()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="7f05920329ca4b7fdbb10931afdb634e"></a><!-- doxytag: member="Wt::WModelIndex::data" ref="7f05920329ca4b7fdbb10931afdb634e" args="(int role=DisplayRole) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boost::any Wt::WModelIndex::data           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>role</em> = <code>DisplayRole</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns data in the model at this index. 
<p>
This is a convenience method for <a class="el" href="classWt_1_1WAbstractItemModel.html#9112b74d160f916ef75fb6c1c09dd8fe" title="Returns data at a specific model index.">WAbstractItemModel::data()</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#9112b74d160f916ef75fb6c1c09dd8fe" title="Returns data at a specific model index.">WAbstractItemModel::data()</a> <p>
<a class="el" href="group__modelview.html#g0ae864e12320f9f89172735e075ed068" title="Enumeration that indicates a role for a data item.">ItemDataRole</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="04877832f757772b8dc7e6b30fb3638c"></a><!-- doxytag: member="Wt::WModelIndex::flags" ref="04877832f757772b8dc7e6b30fb3638c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WFlags&lt; <a class="el" href="group__modelview.html#g1d77c4de293aebfacbdde124de06b8b0">ItemFlag</a> &gt; Wt::WModelIndex::flags           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the flags for this item. 
<p>
This is a convenience method for <a class="el" href="classWt_1_1WAbstractItemModel.html#b5e60f81be797c0553a010eff5b9a592" title="Returns the flags for an item.">WAbstractItemModel::flags()</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#b5e60f81be797c0553a010eff5b9a592" title="Returns the flags for an item.">WAbstractItemModel::flags()</a> <p>
<a class="el" href="group__modelview.html#g1d77c4de293aebfacbdde124de06b8b0" title="Flags that indicate data item options.">ItemFlag</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="1d4b05ee51c5c6961d6123565fd77c82"></a><!-- doxytag: member="Wt::WModelIndex::isValid" ref="1d4b05ee51c5c6961d6123565fd77c82" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WModelIndex::isValid           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether the index is a real valid index. 
<p>
Returns <code>true</code> when the index points to a valid data item, i.e. at a valid <a class="el" href="classWt_1_1WModelIndex.html#a4f1385223391c46ee200a57672f6046" title="Returns the row for this model index.">row()</a> and <a class="el" href="classWt_1_1WModelIndex.html#0e6568dd7113662c3c378e2084729581" title="Returns the column for this model index.">column()</a>.<p>
An index may be invalid for two reasons:<ul>
<li>an operation requested an index that was out of model bounds,</li><li>or, the index corresponds to the model's top level root item, and is thus the parent index for top level items. </li></ul>

</div>
</div><p>
<a class="anchor" name="9fe91b75030a8a7373e3262fbbc6cad6"></a><!-- doxytag: member="Wt::WModelIndex::model" ref="9fe91b75030a8a7373e3262fbbc6cad6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>* Wt::WModelIndex::model           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the model to which this (valid) index is bound. 
<p>
This returns the model that created the model index. 
</div>
</div><p>
<a class="anchor" name="6bb6b3624c4d75e3a495860e46c04f9e"></a><!-- doxytag: member="Wt::WModelIndex::operator==" ref="6bb6b3624c4d75e3a495860e46c04f9e" args="(const WModelIndex &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WModelIndex::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<p>
Returns <code>true</code> only if the indexes point at the same data, in the same model. 
</div>
</div><p>
<a class="anchor" name="ce2743acada845b3d4912e70c9787eac"></a><!-- doxytag: member="Wt::WModelIndex::operator!=" ref="ce2743acada845b3d4912e70c9787eac" args="(const WModelIndex &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WModelIndex::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WModelIndex.html#6bb6b3624c4d75e3a495860e46c04f9e" title="Comparison operator.">operator==()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="29a0a0ab3e961b8087d95b7c62555cd1"></a><!-- doxytag: member="Wt::WModelIndex::operator&lt;" ref="29a0a0ab3e961b8087d95b7c62555cd1" args="(const WModelIndex &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WModelIndex::operator&lt;           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<p>
Returns <code>true</code> if the index comes topologically before <code>other</code>.<p>
Topological order follows the order in which the indexes would be displayed in a tree table view, from top to bottom followed by left to right. 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>