File: structGitModel_1_1ChildIndex.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 (157 lines) | stat: -rw-r--r-- 8,325 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
<!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 examples: GitModel::ChildIndex 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="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>
      <li><a href="files.html"><span>Files</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="classGitModel.html">GitModel</a>::<a class="el" href="structGitModel_1_1ChildIndex.html">ChildIndex</a>
  </div>
</div>
<div class="contents">
<h1>GitModel::ChildIndex Class Reference</h1><!-- doxytag: class="GitModel::ChildIndex" -->Index usable as a key to a map, that identifies a child/row within a tree.  
<a href="#_details">More...</a>
<p>

<p>
<a href="classGitModel_1_1ChildIndex-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="structGitModel_1_1ChildIndex.html#d69cd4e97985edfec0c7b1fba0319b9b">ChildIndex</a> (int aParent, int anIndex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGitModel_1_1ChildIndex.html#b17c0f59139f31840e63c1ac87021296">operator&lt;</a> (const <a class="el" href="structGitModel_1_1ChildIndex.html">ChildIndex</a> &amp;other) const </td></tr>

<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGitModel_1_1ChildIndex.html#94e6e7cda51ae9de96be217b3a4138e3">parentId</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGitModel_1_1ChildIndex.html#6b3f83929ab40d80f3e19c81a747f7c2">index</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Index usable as a key to a map, that identifies a child/row within a tree. 
<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00112">112</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="d69cd4e97985edfec0c7b1fba0319b9b"></a><!-- doxytag: member="GitModel::ChildIndex::ChildIndex" ref="d69cd4e97985edfec0c7b1fba0319b9b" args="(int aParent, int anIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GitModel::ChildIndex::ChildIndex           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>aParent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>anIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00116">116</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00117"></a>00117       : <a class="code" href="structGitModel_1_1ChildIndex.html#94e6e7cda51ae9de96be217b3a4138e3">parentId</a>(aParent), <a class="code" href="structGitModel_1_1ChildIndex.html#6b3f83929ab40d80f3e19c81a747f7c2">index</a>(anIndex) { }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b17c0f59139f31840e63c1ac87021296"></a><!-- doxytag: member="GitModel::ChildIndex::operator&lt;" ref="b17c0f59139f31840e63c1ac87021296" args="(const ChildIndex &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool GitModel::ChildIndex::operator&lt;           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structGitModel_1_1ChildIndex.html">ChildIndex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00119">119</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00119"></a>00119                                                    {
<a name="l00120"></a>00120       <span class="keywordflow">if</span> (<a class="code" href="structGitModel_1_1ChildIndex.html#94e6e7cda51ae9de96be217b3a4138e3">parentId</a> &lt; other.parentId)
<a name="l00121"></a>00121         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00122"></a>00122       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="structGitModel_1_1ChildIndex.html#94e6e7cda51ae9de96be217b3a4138e3">parentId</a> &gt; other.parentId)
<a name="l00123"></a>00123         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00124"></a>00124       <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="structGitModel_1_1ChildIndex.html#6b3f83929ab40d80f3e19c81a747f7c2">index</a> &lt; other.index;
<a name="l00125"></a>00125     }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="94e6e7cda51ae9de96be217b3a4138e3"></a><!-- doxytag: member="GitModel::ChildIndex::parentId" ref="94e6e7cda51ae9de96be217b3a4138e3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structGitModel_1_1ChildIndex.html#94e6e7cda51ae9de96be217b3a4138e3">GitModel::ChildIndex::parentId</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00113">113</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="6b3f83929ab40d80f3e19c81a747f7c2"></a><!-- doxytag: member="GitModel::ChildIndex::index" ref="6b3f83929ab40d80f3e19c81a747f7c2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structGitModel_1_1ChildIndex.html#6b3f83929ab40d80f3e19c81a747f7c2">GitModel::ChildIndex::index</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00114">114</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>/home/koen/project/wt/public-git/wt/examples/gitmodel/<a class="el" href="GitModel_8h-source.html">GitModel.h</a></ul>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:12 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>