Sophie

Sophie

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

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>FunctionWrap.h</h1><a href="FunctionWrap_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 FunctionWrap_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define FunctionWrap_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="FunctionBase_8h.html" title="hippodraw::FunctionBase class interface">functions/FunctionBase.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">namespace </span>hippodraw {
<a name="l00020"></a>00020 
<a name="l00030"></a><a class="code" href="classhippodraw_1_1FunctionWrap.html">00030</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1FunctionWrap.html" title="A wrapper class for FunctionBase.">FunctionWrap</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a>,
<a name="l00031"></a>00031                      <span class="keyword">public</span> boost::python::<a class="code" href="classboost_1_1python_1_1wrapper.html">wrapper</a> &lt; FunctionBase &gt;
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033 <span class="keyword">private</span>:
<a name="l00034"></a>00034 
<a name="l00037"></a><a class="code" href="classhippodraw_1_1FunctionWrap.html#a882d2a005cb46c0b167b3cc2c7d2bfda">00037</a>   boost::python::object <a class="code" href="classhippodraw_1_1FunctionWrap.html#a882d2a005cb46c0b167b3cc2c7d2bfda" title="The new ownership.">invert_ownership</a>;
<a name="l00038"></a>00038 
<a name="l00041"></a>00041   <span class="keyword">template</span> &lt; <span class="keyword">class</span> T &gt;
<a name="l00042"></a>00042   boost::python::object <a class="code" href="classhippodraw_1_1FunctionWrap.html#a6890ec978e2c0d41a8b9e205a5798195" title="Find the Python object that owns this object.">get_owner</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a21f40778b7db9343a6ca75ec2c41ccce" title="title">T</a> * me ) <span class="keyword">const</span>;
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">public</span>:
<a name="l00045"></a>00045 
<a name="l00048"></a>00048   <a class="code" href="classhippodraw_1_1FunctionWrap.html#ab19b6efad37625c7e298c3ffa12b5a86" title="The default constructor.">FunctionWrap</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a> &amp; base );
<a name="l00049"></a>00049 
<a name="l00052"></a>00052   <a class="code" href="classhippodraw_1_1FunctionWrap.html#ab19b6efad37625c7e298c3ffa12b5a86" title="The default constructor.">FunctionWrap</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html" title="A wrapper class for FunctionBase.">FunctionWrap</a> &amp; );
<a name="l00053"></a>00053 
<a name="l00056"></a>00056   <a class="code" href="classhippodraw_1_1FunctionWrap.html#ab19b6efad37625c7e298c3ffa12b5a86" title="The default constructor.">FunctionWrap</a> ();
<a name="l00057"></a>00057 
<a name="l00060"></a>00060   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a04a68698670150ed2b094abdea9d58bf" title="The destructor.">~FunctionWrap</a> ();
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 
<a name="l00065"></a>00065   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a9d3a2685df23b5e7cbf59c19c4a1f9b5" title="Sets the name of the function.">setName</a> ( <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1FunctionBase.html#a11c23a386abb9eb8a42f0c2c2835d640" title="Returns the name of the function.">name</a> );
<a name="l00066"></a>00066 
<a name="l00070"></a>00070   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#aeb533a9c185a44ea914278078359866f" title="Sets the names of the parameters and re-sizes the number of parameters available...">setParmNames</a> ( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; names );
<a name="l00071"></a>00071   <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#ae0c4b9ee0490fcc3e62658e4099c681f">derivByParm</a> ( <span class="keywordtype">int</span>, <span class="keywordtype">double</span> ) <span class="keyword">const</span>;
<a name="l00072"></a>00072   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a25a40b6614565f755233080a384c35f1">initialize</a> ();
<a name="l00073"></a>00073 
<a name="l00088"></a>00088   <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a> * <a class="code" href="classhippodraw_1_1FunctionWrap.html#a5e4b003c4faa8b7729e762445c7578d8" title="Make copy of object, including copy of Python object.">clone</a> () <span class="keyword">const</span>;
<a name="l00089"></a>00089 
<a name="l00090"></a>00090   <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a6a7b63cbfbcb62c3c0e2f5c22800db84">operator () </a>( <span class="keywordtype">double</span> ) <span class="keyword">const</span>;
<a name="l00091"></a>00091   <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a6a7b63cbfbcb62c3c0e2f5c22800db84">operator () </a>( <span class="keyword">const</span> std::vector &lt; double &gt; &amp; ) <span class="keyword">const</span>;
<a name="l00092"></a>00092   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a09b1fef6defaeff6178bb3739fdd800c" title="Sets the FunctionHelper so that the function can calculate a reasonable set of initial...">initialParameters</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionHelper.html" title="An abstract base class to help FunctionBase objects perform some operations.">FunctionHelper</a> * );
<a name="l00093"></a>00093 
<a name="l00094"></a>00094   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a859ce4162e4a8aa28e4599d6c247038d" title="Returns the number of dimensions of the data coordinate.">dimensions</a> () <span class="keyword">const</span>;
<a name="l00095"></a>00095 
<a name="l00099"></a>00099   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1FunctionWrap.html#a014f51d18e05dbf02fc11ea7245a03f8" title="Returns true if the Python function has implemented returning partial derivatives...">hasDerivatives</a> () <span class="keyword">const</span>;
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 };
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 } <span class="comment">// namespace hippodraw</span>
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#endif // FunctionWrap_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>