Sophie

Sophie

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

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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</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>
<div class="contents">
<h1>from_python_sequence&lt; ContainerType, ConversionPolicy &gt; Struct Template Reference</h1><!-- doxytag: class="from_python_sequence" -->
<p>Conversion of Python sequence to C++ container.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>&gt;</code></p>

<p><a href="structfrom__python__sequence-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef ContainerType::value_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfrom__python__sequence.html#a2fcef2ea0a7311903c40c51671d7dc96">container_element_type</a></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfrom__python__sequence.html#a352111c955cbad0b305bc92e49c52c36">from_python_sequence</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfrom__python__sequence.html#aabb0606d25ddee36dc85c78c51cd6734">construct</a> (PyObject *obj_ptr, boost::python::converter::rvalue_from_python_stage1_data *data)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a C++ container from a Python sequence.  <a href="#aabb0606d25ddee36dc85c78c51cd6734"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfrom__python__sequence.html#a70fa62374e61abf0f409f0ecf299075a">convertible</a> (PyObject *obj_ptr)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Appears to return <em>obj_ptr</em> if it is type of Python sequence that can be convertible to C++ container.  <a href="#a70fa62374e61abf0f409f0ecf299075a"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename ContainerType, typename ConversionPolicy&gt;<br/>
 struct from_python_sequence&lt; ContainerType, ConversionPolicy &gt;</h3>

<p>Conversion of Python sequence to C++ container. </p>
<p>Copied from scitbx/include/scitbx/boost_python/container_conversions.h that is described in the <a href="http://www.boost.org/libs/python/doc/v2/faq.html">Boost.Python FAQ. </a></p>
<dl class="author"><dt><b>Author:</b></dt><dd>Ralf W. Grosse-Kunstleve &lt;<a href="mailto:rwgk@yahoo.com">rwgk@yahoo.com</a>&gt; of <a href="http://www.lbl.gov/">Lawrence Berkeley National Laboratory</a> </dd></dl>

<p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00148">148</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a2fcef2ea0a7311903c40c51671d7dc96"></a><!-- doxytag: member="from_python_sequence::container_element_type" ref="a2fcef2ea0a7311903c40c51671d7dc96" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef ContainerType::value_type <a class="el" href="structfrom__python__sequence.html#a2fcef2ea0a7311903c40c51671d7dc96">container_element_type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00150">150</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a352111c955cbad0b305bc92e49c52c36"></a><!-- doxytag: member="from_python_sequence::from_python_sequence" ref="a352111c955cbad0b305bc92e49c52c36" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structfrom__python__sequence.html">from_python_sequence</a> </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00152">152</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p>

<p>References <a class="el" href="pyconversions_8h_source.html#l00214">from_python_sequence&lt; ContainerType, ConversionPolicy &gt;::construct()</a>, and <a class="el" href="pyconversions_8h_source.html#l00162">from_python_sequence&lt; ContainerType, ConversionPolicy &gt;::convertible()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aabb0606d25ddee36dc85c78c51cd6734"></a><!-- doxytag: member="from_python_sequence::construct" ref="aabb0606d25ddee36dc85c78c51cd6734" args="(PyObject *obj_ptr, boost::python::converter::rvalue_from_python_stage1_data *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void construct </td>
          <td>(</td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>obj_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::python::converter::rvalue_from_python_stage1_data *&nbsp;</td>
          <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a C++ container from a Python sequence. </p>

<p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00214">214</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p>

<p>Referenced by <a class="el" href="pyconversions_8h_source.html#l00152">from_python_sequence&lt; ContainerType, ConversionPolicy &gt;::from_python_sequence()</a>.</p>

</div>
</div>
<a class="anchor" id="a70fa62374e61abf0f409f0ecf299075a"></a><!-- doxytag: member="from_python_sequence::convertible" ref="a70fa62374e61abf0f409f0ecf299075a" args="(PyObject *obj_ptr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void* convertible </td>
          <td>(</td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>obj_ptr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Appears to return <em>obj_ptr</em> if it is type of Python sequence that can be convertible to C++ container. </p>

<p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00162">162</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p>

<p>References <a class="el" href="namespacenum__util.html#a961c6962ff3c1a9d17dcdc3e0f6d5694">num_util::check_size()</a>.</p>

<p>Referenced by <a class="el" href="pyconversions_8h_source.html#l00152">from_python_sequence&lt; ContainerType, ConversionPolicy &gt;::from_python_sequence()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="pyconversions_8h_source.html">pyconversions.h</a></li>
</ul>
</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>