<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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>variable_capacity_policy Struct Reference</h1><!-- doxytag: class="variable_capacity_policy" --><!-- doxytag: inherits="default_policy" --> <p>Operations on containers that have variable capacity for conversion from Python container to C++ one. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>></code></p> <div class="dynheader"> Inheritance diagram for variable_capacity_policy:</div> <div class="dynsection"> <div class="center"><img src="structvariable__capacity__policy__inherit__graph.gif" border="0" usemap="#variable__capacity__policy_inherit__map" alt="Inheritance graph"/></div> <map name="variable__capacity__policy_inherit__map" id="variable__capacity__policy_inherit__map"> <area shape="rect" id="node2" href="structdefault__policy.html" title="Default operations on all containers for conversion from Python container to C++..." alt="" coords="36,5,137,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for variable_capacity_policy:</div> <div class="dynsection"> <div class="center"><img src="structvariable__capacity__policy__coll__graph.gif" border="0" usemap="#variable__capacity__policy_coll__map" alt="Collaboration graph"/></div> <map name="variable__capacity__policy_coll__map" id="variable__capacity__policy_coll__map"> <area shape="rect" id="node2" href="structdefault__policy.html" title="Default operations on all containers for conversion from Python container to C++..." alt="" coords="36,5,137,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="structvariable__capacity__policy-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memTemplParams" colspan="2">template<typename ContainerType > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structdefault__policy.html#a6d5a947bbb7212c0b854286c71b2cdc1">assert_size</a> (boost::type< ContainerType >, std::size_t)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structdefault__policy.html#aecd1113d2503df63d9450438b1c6d5f7">check_convertibility_per_element</a> ()</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename ContainerType > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structdefault__policy.html#acefd197fe83e08a6d30c8edbf9441ca4">check_size</a> (boost::type< ContainerType >, std::size_t)</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename ContainerType > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structvariable__capacity__policy.html#af28db935f17ba03b0155256ae1e1c82d">reserve</a> (ContainerType &a, std::size_t sz)</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename ContainerType , typename ValueType > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structvariable__capacity__policy.html#ad08198333aa10b7893ecf7b240d8a143">set_value</a> (ContainerType &a, std::size_t i, ValueType const &v)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Operations on containers that have variable capacity for conversion from Python container to C++ one. </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 <<a href="mailto:rwgk@yahoo.com">rwgk@yahoo.com</a>> 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#l00120">120</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a6d5a947bbb7212c0b854286c71b2cdc1"></a><!-- doxytag: member="variable_capacity_policy::assert_size" ref="a6d5a947bbb7212c0b854286c71b2cdc1" args="(boost::type< ContainerType >, std::size_t)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void assert_size </td> <td>(</td> <td class="paramtype">boost::type< ContainerType > </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::size_t </td> <td class="paramname"></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00102">102</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p> </div> </div> <a class="anchor" id="aecd1113d2503df63d9450438b1c6d5f7"></a><!-- doxytag: member="variable_capacity_policy::check_convertibility_per_element" ref="aecd1113d2503df63d9450438b1c6d5f7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool check_convertibility_per_element </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, static, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00092">92</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p> </div> </div> <a class="anchor" id="acefd197fe83e08a6d30c8edbf9441ca4"></a><!-- doxytag: member="variable_capacity_policy::check_size" ref="acefd197fe83e08a6d30c8edbf9441ca4" args="(boost::type< ContainerType >, std::size_t)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool check_size </td> <td>(</td> <td class="paramtype">boost::type< ContainerType > </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::size_t </td> <td class="paramname"></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00095">95</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p> </div> </div> <a class="anchor" id="af28db935f17ba03b0155256ae1e1c82d"></a><!-- doxytag: member="variable_capacity_policy::reserve" ref="af28db935f17ba03b0155256ae1e1c82d" args="(ContainerType &a, std::size_t sz)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void reserve </td> <td>(</td> <td class="paramtype">ContainerType & </td> <td class="paramname"> <em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::size_t </td> <td class="paramname"> <em>sz</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Reimplemented from <a class="el" href="structdefault__policy.html#a8e9b597384fc542527c06ec391195707">default_policy</a>.</p> <p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00123">123</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</a>.</p> </div> </div> <a class="anchor" id="ad08198333aa10b7893ecf7b240d8a143"></a><!-- doxytag: member="variable_capacity_policy::set_value" ref="ad08198333aa10b7893ecf7b240d8a143" args="(ContainerType &a, std::size_t i, ValueType const &v)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void set_value </td> <td>(</td> <td class="paramtype">ContainerType & </td> <td class="paramname"> <em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::size_t </td> <td class="paramname"> <em>i</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">ValueType const & </td> <td class="paramname"> <em>v</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="pyconversions_8h_source.html#l00129">129</a> of file <a class="el" href="pyconversions_8h_source.html">pyconversions.h</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>