/[PAMELA software]/PamCut/doc/Doxygen/html/CommonDefs_8h_source.html
ViewVC logotype

Diff of /PamCut/doc/Doxygen/html/CommonDefs_8h_source.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Wed May 27 13:30:06 2009 UTC revision 1.2 by pam-fi, Fri Jun 5 13:15:51 2009 UTC
# Line 49  Line 49 
49  <a name="l00046"></a>00046  <a name="l00046"></a>00046
50  <a name="l00047"></a>00047 <span class="keyword">public</span>:  <a name="l00047"></a>00047 <span class="keyword">public</span>:
51  <a name="l00058"></a><a class="code" href="classSimpleMatrix.html#9333dc41698c48f4e35d48e27dfe58ef">00058</a>   <a class="code" href="classSimpleMatrix.html#9333dc41698c48f4e35d48e27dfe58ef" title="Constructor.">SimpleMatrix</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nRows, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nCols, T elements = T()) :  <a name="l00058"></a><a class="code" href="classSimpleMatrix.html#9333dc41698c48f4e35d48e27dfe58ef">00058</a>   <a class="code" href="classSimpleMatrix.html#9333dc41698c48f4e35d48e27dfe58ef" title="Constructor.">SimpleMatrix</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nRows, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nCols, T elements = T()) :
52  <a name="l00059"></a>00059     <a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">_matrix</a>(nRows, std::vector&lt;T&gt;(nCols, elements)), <a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">_nRows</a>(nRows), <a class="code" href="classSimpleMatrix.html#8ea505fb218d273214c2ae6ef45bbc82">_nCols</a>(nCols) {  <a name="l00059"></a>00059     _matrix(nRows, std::vector&lt;T&gt;(nCols, elements)), _nRows(nRows), _nCols(nCols) {
53  <a name="l00060"></a>00060  <a name="l00060"></a>00060
54  <a name="l00061"></a>00061   }  <a name="l00061"></a>00061   }
55  <a name="l00062"></a>00062  <a name="l00062"></a>00062
56  <a name="l00068"></a><a class="code" href="classSimpleMatrix.html#7ee36ef98c7f896e38ec8a8a0c263c39">00068</a>   std::vector&lt;T&gt;&amp; <a class="code" href="classSimpleMatrix.html#7ee36ef98c7f896e38ec8a8a0c263c39" title="Standard accessor.">operator[]</a>(<span class="keywordtype">int</span> i) {  <a name="l00068"></a><a class="code" href="classSimpleMatrix.html#7ee36ef98c7f896e38ec8a8a0c263c39">00068</a>   std::vector&lt;T&gt;&amp; <a class="code" href="classSimpleMatrix.html#7ee36ef98c7f896e38ec8a8a0c263c39" title="Standard accessor.">operator[]</a>(<span class="keywordtype">int</span> i) {
57  <a name="l00069"></a>00069     <span class="keywordflow">return</span> <a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">_matrix</a>[i];  <a name="l00069"></a>00069     <span class="keywordflow">return</span> _matrix[i];
58  <a name="l00070"></a>00070   }  <a name="l00070"></a>00070   }
59  <a name="l00071"></a>00071  <a name="l00071"></a>00071
60  <a name="l00076"></a><a class="code" href="classSimpleMatrix.html#5cd169cdc38912c3cfb6d0c60e48e042">00076</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#5cd169cdc38912c3cfb6d0c60e48e042" title="Returns the number of rows.">GetNRows</a>() {  <a name="l00076"></a><a class="code" href="classSimpleMatrix.html#5cd169cdc38912c3cfb6d0c60e48e042">00076</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#5cd169cdc38912c3cfb6d0c60e48e042" title="Returns the number of rows.">GetNRows</a>() {
61  <a name="l00077"></a>00077     <span class="keywordflow">return</span> <a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">_nRows</a>;  <a name="l00077"></a>00077     <span class="keywordflow">return</span> _nRows;
62  <a name="l00078"></a>00078   }  <a name="l00078"></a>00078   }
63  <a name="l00079"></a>00079  <a name="l00079"></a>00079
64  <a name="l00084"></a><a class="code" href="classSimpleMatrix.html#4f168e5b85899788746355ccad15e2fb">00084</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#4f168e5b85899788746355ccad15e2fb" title="Returns the number of columns.">GetNCols</a>() {  <a name="l00084"></a><a class="code" href="classSimpleMatrix.html#4f168e5b85899788746355ccad15e2fb">00084</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#4f168e5b85899788746355ccad15e2fb" title="Returns the number of columns.">GetNCols</a>() {
65  <a name="l00085"></a>00085     <span class="keywordflow">return</span> <a class="code" href="classSimpleMatrix.html#8ea505fb218d273214c2ae6ef45bbc82">_nCols</a>;  <a name="l00085"></a>00085     <span class="keywordflow">return</span> _nCols;
66  <a name="l00086"></a>00086   }  <a name="l00086"></a>00086   }
67  <a name="l00087"></a>00087  <a name="l00087"></a>00087
68  <a name="l00088"></a>00088 <span class="keyword">private</span>:  <a name="l00088"></a>00088 <span class="keyword">private</span>:
69  <a name="l00089"></a>00089  <a name="l00089"></a>00089
70  <a name="l00090"></a><a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">00090</a>   std::vector&lt;std::vector&lt;T&gt; &gt; <a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">_matrix</a>;  <a name="l00090"></a>00090   std::vector&lt;std::vector&lt;T&gt; &gt; _matrix;
71  <a name="l00091"></a><a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">00091</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">_nRows</a>, <a class="code" href="classSimpleMatrix.html#8ea505fb218d273214c2ae6ef45bbc82">_nCols</a>;  <a name="l00091"></a>00091   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _nRows, _nCols;
72  <a name="l00092"></a>00092 };  <a name="l00092"></a>00092 };
73  <a name="l00093"></a>00093  <a name="l00093"></a>00093
74  <a name="l00094"></a>00094 <span class="preprocessor">#endif </span><span class="comment">/* COMMONDEFS_H_ */</span>  <a name="l00094"></a>00094 <span class="preprocessor">#endif </span><span class="comment">/* COMMONDEFS_H_ */</span>
75  </pre></div></div>  </pre></div></div>
76  <hr size="1"><address style="text-align: right;"><small>Generated on Wed May 27 15:21:27 2009 for PamCut by&nbsp;  <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 15:08:58 2009 for PamCut by&nbsp;
77  <a href="http://www.doxygen.org/index.html">  <a href="http://www.doxygen.org/index.html">
78  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
79  </body>  </body>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23