Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 352

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt examples: GitModel::Tree Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt examples
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="classGitModel.html">GitModel</a>      </li>
      <li class="navelem"><a class="el" href="classGitModel_1_1Tree.html">Tree</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">GitModel::Tree Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="GitModel::Tree" -->
<p>Used to uniquely locate a folder within the folder hierarchy.  
 <a href="classGitModel_1_1Tree.html#details">More...</a></p>

<p><a href="classGitModel_1_1Tree-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#a2e52a20594718a7e41e00f81b4aff93a">Tree</a> (int parentId, int index, const <a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a> &amp;object, int rowCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a2e52a20594718a7e41e00f81b4aff93a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#a83d9cb3d07454c2e4ab4364c4522d431">parentId</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the parent id.  <a href="#a83d9cb3d07454c2e4ab4364c4522d431"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#a116166e6c25a27f7d63346f3f6f89e74">index</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the child index within the parent folder.  <a href="#a116166e6c25a27f7d63346f3f6f89e74"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#a963ec0ca3e067d01ba9fd98359c44216">treeObject</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the SHA1 id for the git tree object.  <a href="#a963ec0ca3e067d01ba9fd98359c44216"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#a7dd16c204dc8c1664130f15eb04a1ca3">rowCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the (cached) row count.  <a href="#a7dd16c204dc8c1664130f15eb04a1ca3"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structGitModel_1_1ChildIndex.html">ChildIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#ac535b85766567aec88bd147d3b831567">index_</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGit_1_1ObjectId.html">Git::ObjectId</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#afc45a4383267540d6d411a18b453c533">treeObject_</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGitModel_1_1Tree.html#a57ffcfe5ebe69e2bcee7df31668fac7e">rowCount_</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Used to uniquely locate a folder within the folder hierarchy. </p>

<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>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2e52a20594718a7e41e00f81b4aff93a"></a><!-- doxytag: member="GitModel::Tree::Tree" ref="a2e52a20594718a7e41e00f81b4aff93a" args="(int parentId, int index, const Git::ObjectId &amp;object, int rowCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GitModel::Tree::Tree </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>parentId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</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;&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rowCount</em>&#160;</td>
        </tr>
        <tr>
          <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 class="code" href="classGitModel_1_1Tree.html#ac535b85766567aec88bd147d3b831567">index_</a>(<a class="code" href="classGitModel_1_1Tree.html#a83d9cb3d07454c2e4ab4364c4522d431" title="Returns the parent id.">parentId</a>, <a class="code" href="classGitModel_1_1Tree.html#a116166e6c25a27f7d63346f3f6f89e74" title="Returns the child index within the parent folder.">index</a>),
        <a class="code" href="classGitModel_1_1Tree.html#afc45a4383267540d6d411a18b453c533">treeObject_</a>(<span class="keywordtype">object</span>),
        <a class="code" href="classGitModel_1_1Tree.html#a57ffcfe5ebe69e2bcee7df31668fac7e">rowCount_</a>(<a class="code" href="classGitModel_1_1Tree.html#a7dd16c204dc8c1664130f15eb04a1ca3" title="Returns the (cached) row count.">rowCount</a>)
    { }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a116166e6c25a27f7d63346f3f6f89e74"></a><!-- doxytag: member="GitModel::Tree::index" ref="a116166e6c25a27f7d63346f3f6f89e74" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the child index within the parent folder. </p>
<p>Index of this folder within the file list of the parent folder. </p>

<p>Definition at line <a class="el" href="GitModel_8h_source.html#l00152">152</a> of file <a class="el" href="GitModel_8h_source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classGitModel_1_1Tree.html#ac535b85766567aec88bd147d3b831567">index_</a>.index; }
</pre></div>
</div>
</div>
<a class="anchor" id="a83d9cb3d07454c2e4ab4364c4522d431"></a><!-- doxytag: member="GitModel::Tree::parentId" ref="a83d9cb3d07454c2e4ab4364c4522d431" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the parent id. </p>
<p>Index of the parent folder within the treeData_ vector. </p>

<p>Definition at line <a class="el" href="GitModel_8h_source.html#l00146">146</a> of file <a class="el" href="GitModel_8h_source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classGitModel_1_1Tree.html#ac535b85766567aec88bd147d3b831567">index_</a>.parentId; }
</pre></div>
</div>
</div>
<a class="anchor" id="a7dd16c204dc8c1664130f15eb04a1ca3"></a><!-- doxytag: member="GitModel::Tree::rowCount" ref="a7dd16c204dc8c1664130f15eb04a1ca3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GitModel::Tree::rowCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the (cached) row count. </p>

<p>Definition at line <a class="el" href="GitModel_8h_source.html#l00160">160</a> of file <a class="el" href="GitModel_8h_source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classGitModel_1_1Tree.html#a57ffcfe5ebe69e2bcee7df31668fac7e">rowCount_</a>; }
</pre></div>
</div>
</div>
<a class="anchor" id="a963ec0ca3e067d01ba9fd98359c44216"></a><!-- doxytag: member="GitModel::Tree::treeObject" ref="a963ec0ca3e067d01ba9fd98359c44216" 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>)</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#l00156">156</a> of file <a class="el" href="GitModel_8h_source.html">GitModel.h</a>.</p>
<div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classGitModel_1_1Tree.html#afc45a4383267540d6d411a18b453c533">treeObject_</a>; }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ac535b85766567aec88bd147d3b831567"></a><!-- doxytag: member="GitModel::Tree::index_" ref="ac535b85766567aec88bd147d3b831567" 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#ac535b85766567aec88bd147d3b831567">GitModel::Tree::index_</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="GitModel_8h_source.html#l00163">163</a> of file <a class="el" href="GitModel_8h_source.html">GitModel.h</a>.</p>

</div>
</div>
<a class="anchor" id="a57ffcfe5ebe69e2bcee7df31668fac7e"></a><!-- doxytag: member="GitModel::Tree::rowCount_" ref="a57ffcfe5ebe69e2bcee7df31668fac7e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classGitModel_1_1Tree.html#a57ffcfe5ebe69e2bcee7df31668fac7e">GitModel::Tree::rowCount_</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="GitModel_8h_source.html#l00165">165</a> of file <a class="el" href="GitModel_8h_source.html">GitModel.h</a>.</p>

</div>
</div>
<a class="anchor" id="afc45a4383267540d6d411a18b453c533"></a><!-- doxytag: member="GitModel::Tree::treeObject_" ref="afc45a4383267540d6d411a18b453c533" 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#afc45a4383267540d6d411a18b453c533">GitModel::Tree::treeObject_</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="GitModel_8h_source.html#l00164">164</a> of file <a class="el" href="GitModel_8h_source.html">GitModel.h</a>.</p>

</div>
</div>
<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></li>
</ul>
</div>
<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>