File: classGitModel_1_1Tree.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 (222 lines) | stat: -rw-r--r-- 11,526 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
<!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::Tree 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="classGitModel_1_1Tree.html">Tree</a>
  </div>
</div>
<div class="contents">
<h1>GitModel::Tree Class Reference</h1><!-- doxytag: class="GitModel::Tree" -->Used to uniquely locate a folder within the folder hierarchy.  
<a href="#_details">More...</a>
<p>

<p>
<a href="classGitModel_1_1Tree-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="classGitModel_1_1Tree.html#32500db026354af9ff4d9b75f46d63c0">Tree</a> (int parentId, int index, const <a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a> &amp;object)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#32500db026354af9ff4d9b75f46d63c0"></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="classGitModel_1_1Tree.html#83d9cb3d07454c2e4ab4364c4522d431">parentId</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the parent id.  <a href="#83d9cb3d07454c2e4ab4364c4522d431"></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="classGitModel_1_1Tree.html#116166e6c25a27f7d63346f3f6f89e74">index</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the child index within the parent folder.  <a href="#116166e6c25a27f7d63346f3f6f89e74"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#963ec0ca3e067d01ba9fd98359c44216">treeObject</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the SHA1 id for the git tree object.  <a href="#963ec0ca3e067d01ba9fd98359c44216"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structGitModel_1_1ChildIndex.html">ChildIndex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#c535b85766567aec88bd147d3b831567">index_</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#fc45a4383267540d6d411a18b453c533">treeObject_</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Used to uniquely locate a folder within the folder hierarchy. 
<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00131">131</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="32500db026354af9ff4d9b75f46d63c0"></a><!-- doxytag: member="GitModel::Tree::Tree" ref="32500db026354af9ff4d9b75f46d63c0" args="(int parentId, int index, const Git::ObjectId &amp;object)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GitModel::Tree::Tree           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>parentId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>object</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>
Constructor. 
<p>

<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00135">135</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00136"></a>00136       : <a class="code" href="classGitModel_1_1Tree.html#c535b85766567aec88bd147d3b831567">index_</a>(<a class="code" href="classGitModel_1_1Tree.html#83d9cb3d07454c2e4ab4364c4522d431" title="Returns the parent id.">parentId</a>, <a class="code" href="classGitModel_1_1Tree.html#116166e6c25a27f7d63346f3f6f89e74" title="Returns the child index within the parent folder.">index</a>),
<a name="l00137"></a>00137         <a class="code" href="classGitModel_1_1Tree.html#fc45a4383267540d6d411a18b453c533">treeObject_</a>(<span class="keywordtype">object</span>)
<a name="l00138"></a>00138     { }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="83d9cb3d07454c2e4ab4364c4522d431"></a><!-- doxytag: member="GitModel::Tree::parentId" ref="83d9cb3d07454c2e4ab4364c4522d431" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GitModel::Tree::parentId           </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 parent id. 
<p>
Index of the parent folder within the treeData_ vector. 
<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00144">144</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00144"></a>00144 { <span class="keywordflow">return</span> <a class="code" href="classGitModel_1_1Tree.html#c535b85766567aec88bd147d3b831567">index_</a>.parentId; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="116166e6c25a27f7d63346f3f6f89e74"></a><!-- doxytag: member="GitModel::Tree::index" ref="116166e6c25a27f7d63346f3f6f89e74" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GitModel::Tree::index           </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 child index within the parent folder. 
<p>
Index of this folder within the file list of the parent folder. 
<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00150">150</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00150"></a>00150 { <span class="keywordflow">return</span> <a class="code" href="classGitModel_1_1Tree.html#c535b85766567aec88bd147d3b831567">index_</a>.index; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="963ec0ca3e067d01ba9fd98359c44216"></a><!-- doxytag: member="GitModel::Tree::treeObject" ref="963ec0ca3e067d01ba9fd98359c44216" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a>&amp; GitModel::Tree::treeObject           </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 SHA1 id for the git tree object. 
<p>

<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00154">154</a> of file <a class="el" href="GitModel_8h-source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00154"></a>00154 { <span class="keywordflow">return</span> <a class="code" href="classGitModel_1_1Tree.html#fc45a4383267540d6d411a18b453c533">treeObject_</a>; }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="c535b85766567aec88bd147d3b831567"></a><!-- doxytag: member="GitModel::Tree::index_" ref="c535b85766567aec88bd147d3b831567" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structGitModel_1_1ChildIndex.html">ChildIndex</a> <a class="el" href="classGitModel_1_1Tree.html#c535b85766567aec88bd147d3b831567">GitModel::Tree::index_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

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

</div>
</div><p>
<a class="anchor" name="fc45a4383267540d6d411a18b453c533"></a><!-- doxytag: member="GitModel::Tree::treeObject_" ref="fc45a4383267540d6d411a18b453c533" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a> <a class="el" href="classGitModel_1_1Tree.html#fc45a4383267540d6d411a18b453c533">GitModel::Tree::treeObject_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="GitModel_8h-source.html#l00158">158</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>