Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 1317

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<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="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_bd46360b4c6a7cd846adf95fa79d46e4.html">python</a>
  </div>
</div>
<div class="contents">
<h1>ListTuple.h</h1><a href="ListTuple_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef ListTuple_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define ListTuple_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="DataSource_8h.html" title="hippodraw::DataSource class interface.">datasrcs/DataSource.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">namespace </span>boost {
<a name="l00020"></a>00020   <span class="keyword">namespace </span>python {
<a name="l00021"></a>00021     <span class="keyword">class </span>list;
<a name="l00022"></a>00022   }
<a name="l00023"></a>00023 }
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">namespace </span>hippodraw {
<a name="l00026"></a>00026 
<a name="l00040"></a><a class="code" href="classhippodraw_1_1ListTuple.html">00040</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1ListTuple.html" title="A DataSource class implemented with a Python list to store the column data.">ListTuple</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a>
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keyword">private</span>:
<a name="l00044"></a>00044 
<a name="l00047"></a><a class="code" href="classhippodraw_1_1ListTuple.html#aed175fab8676bb648c98decadd6717da">00047</a>   std::vector &lt; boost::python::list &gt; <a class="code" href="classhippodraw_1_1ListTuple.html#aed175fab8676bb648c98decadd6717da" title="The numarray objects that contains the data.">m_data</a>;
<a name="l00048"></a>00048 
<a name="l00053"></a><a class="code" href="classhippodraw_1_1ListTuple.html#a93acb7a0d94f9e3e9cc46c1392d89ba0">00053</a>   <span class="keyword">mutable</span> std::vector &lt; double &gt; <a class="code" href="classhippodraw_1_1ListTuple.html#a93acb7a0d94f9e3e9cc46c1392d89ba0" title="A temporary array of data from one row of each column.">m_row</a>;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="keyword">public</span>:
<a name="l00056"></a>00056 
<a name="l00059"></a>00059   <a class="code" href="classhippodraw_1_1ListTuple.html#a50a1e78b4418ddffff42bffe706f368a" title="The default constructor.">ListTuple</a> ();
<a name="l00060"></a>00060 
<a name="l00063"></a>00063   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a4029dcbd00f24db478b29fbe83f33529" title="The destructor.">~ListTuple</a>();
<a name="l00064"></a>00064 
<a name="l00068"></a>00068   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ListTuple.html#af8f91713f705756ba9c469bddce042d4" title="Raises an exception as with this release copying is not supported.">copy</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> &amp; );
<a name="l00069"></a>00069 
<a name="l00073"></a>00073   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a22405609eb7094686259b6a82ad8e0cc" title="Notifies observers.">notifyObservers</a> ( ) <span class="keyword">const</span>;
<a name="l00074"></a>00074 
<a name="l00077"></a>00077   <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a2b76a8f13ad489df9fa8cc9452c9012b" title="Returns the size of the slice for the next to last dimension.">rows</a> () <span class="keyword">const</span>;
<a name="l00078"></a>00078 
<a name="l00081"></a>00081   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1ListTuple.html#ac6e61de369e994009e36f344f99c15ad" title="Returns true, if ListTuple is empty, i.e.">empty</a> () <span class="keyword">const</span>;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083   <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a6d02cb85b64865574b5e442cbce44df1" title="Returns the value in the table in position given by the row and column indexes.">valueAt</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> row, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacehippodraw_1_1DataPoint2DTuple.html#ae78e6e11a40e6dba1bae097358f97d15" title="The column indices for 2 dimension data point tuple.">column</a> ) <span class="keyword">const</span>;
<a name="l00084"></a>00084 
<a name="l00093"></a>00093   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a7f2913d71b204828f7d3b0ae1b6d384c" title="Adds a column to the end of the ListTuple.">addColumn</a> ( <span class="keyword">const</span> std::string &amp; label, 
<a name="l00094"></a>00094                   <a class="code" href="classboost_1_1python_1_1list.html" title="A wrapper class for Python list objects.">boost::python::list</a> seq );
<a name="l00095"></a>00095 
<a name="l00101"></a>00101   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a19ff5a6871a105b2e45b38fa0ff243e2" title="Replaces the column indexed by index with the array.">replaceColumn</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index, 
<a name="l00102"></a>00102                        <a class="code" href="classboost_1_1python_1_1list.html" title="A wrapper class for Python list objects.">boost::python::list</a> array );
<a name="l00103"></a>00103 
<a name="l00109"></a>00109   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a19ff5a6871a105b2e45b38fa0ff243e2" title="Replaces the column indexed by index with the array.">replaceColumn</a> ( <span class="keyword">const</span> std::string &amp; label,
<a name="l00110"></a>00110                        <a class="code" href="classboost_1_1python_1_1list.html" title="A wrapper class for Python list objects.">boost::python::list</a> array );
<a name="l00111"></a>00111 
<a name="l00114"></a>00114   <span class="keyword">virtual</span> <span class="keyword">const</span> std::vector &lt; double &gt; &amp; <a class="code" href="classhippodraw_1_1ListTuple.html#a6810ce28ceb1ff3d729b2c3c9e771fb7" title="Returns a const reference to slice along the axis known as a row.">getRow</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index ) <span class="keyword">const</span>;
<a name="l00115"></a>00115 
<a name="l00122"></a>00122   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a6f267e1482fa1b59a3193a9b11cf32f9" title="Sets the shape of the data elements.">setShape</a> ( std::vector &lt; unsigned int &gt; &amp; <a class="code" href="namespacenum__util.html#a8570d9b34e8e9d714823c1b1986764f7">shape</a> );
<a name="l00123"></a>00123 
<a name="l00126"></a>00126   <span class="keyword">const</span> std::vector &lt; unsigned int &gt; &amp; <a class="code" href="classhippodraw_1_1ListTuple.html#ac263a432c113e518030935750c65b801" title="Returns the shape of the data elements.">getShape</a> () <span class="keyword">const</span>;
<a name="l00127"></a>00127 
<a name="l00131"></a>00131   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ListTuple.html#ac8bb3912a3ce86b15842e79d0b421204" title="Raises assertion because the contained Python list should not be changed.">clear</a> ();
<a name="l00132"></a>00132 
<a name="l00136"></a>00136   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ListTuple.html#a595acdd9cae86ec28dd0f894833a8c0d" title="Raises assertion because the contained Python list should not be changed.">reserve</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count );
<a name="l00137"></a>00137 
<a name="l00140"></a>00140   <span class="keyword">virtual</span> <span class="keywordtype">double</span> 
<a name="l00141"></a>00141   <a class="code" href="classhippodraw_1_1ListTuple.html#acbf962bf260a39f2b3fef70abfc21422" title="Raises assertion because this method is not implemented yet.">operator [] </a>(  std::vector &lt; unsigned int &gt; &amp; indices ) <span class="keyword">const</span>;
<a name="l00142"></a>00142 
<a name="l00143"></a>00143 <span class="keyword">private</span>:
<a name="l00144"></a>00144 
<a name="l00148"></a>00148   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1ListTuple.html#ae24ed883d756ec29026b8747b0d6fdbe" title="Returns true if all the elements of the list seq can be converted to type double...">isAcceptable</a> ( <span class="keyword">const</span> <a class="code" href="classboost_1_1python_1_1list.html" title="A wrapper class for Python list objects.">boost::python::list</a> &amp; seq );
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 };
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 } <span class="comment">// namespace hippodraw</span>
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 <span class="preprocessor">#endif // ListTuple_H</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>