<areahref="classvoro_1_1pre__container__base.html"title="A class for storing an arbitrary number of particles, prior to setting up a container geometry..."alt="voro::pre_container_base"shape="rect"coords="0,0,157,24"/>
<trclass="memitem:ac68ce0449cf83ee282325d5302ffa4cd"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classvoro_1_1pre__container.html#ac68ce0449cf83ee282325d5302ffa4cd">put</a> (int n, double x, double y, double z)</td></tr>
<trclass="inherit_header pub_methods_classvoro_1_1pre__container__base"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classvoro_1_1pre__container__base')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classvoro_1_1pre__container__base.html">voro::pre_container_base</a></td></tr>
<trclass="memitem:a8e1fcadbeedc63f205a36c2fa9333ab6 inherit pub_methods_classvoro_1_1pre__container__base"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classvoro_1_1pre__container__base.html#a8e1fcadbeedc63f205a36c2fa9333ab6">guess_optimal</a> (int &nx, int &ny, int &nz)</td></tr>
<trclass="inherit_header pro_methods_classvoro_1_1pre__container__base"><tdcolspan="2"onclick="javascript:toggleInherit('pro_methods_classvoro_1_1pre__container__base')"><imgsrc="closed.png"alt="-"/> Protected Member Functions inherited from <aclass="el"href="classvoro_1_1pre__container__base.html">voro::pre_container_base</a></td></tr>
<divclass="textblock"><p>The <aclass="el"href="classvoro_1_1pre__container.html"title="A class for storing an arbitrary number of particles without radius information, prior to setting up ...">pre_container</a> class is an extension of the <aclass="el"href="classvoro_1_1pre__container__base.html"title="A class for storing an arbitrary number of particles, prior to setting up a container geometry...">pre_container_base</a> class for cases when no particle radius information is available. </p>
<p>Definition at line <aclass="el"href="pre__container_8hh_source.html#l00101">101</a> of file <aclass="el"href="pre__container_8hh_source.html">pre_container.hh</a>.</p>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<p>The class constructor sets up the geometry of container, initializing the minimum and maximum coordinates in each direction. </p>
<dlclass="params"><dt>Parameters:</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">(ax_,bx_)</td><td>the minimum and maximum x coordinates. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">(ay_,by_)</td><td>the minimum and maximum y coordinates. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">(az_,bz_)</td><td>the minimum and maximum z coordinates. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">(xperiodic_,yperiodic_,zperiodic_</td><td>) flags setting whether the container is periodic in each coordinate direction. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="pre__container_8hh_source.html#l00112">112</a> of file <aclass="el"href="pre__container_8hh_source.html">pre_container.hh</a>.</p>
<p>Import a list of particles from an open file stream into the container. Entries of four numbers (Particle ID, x position, y position, z position) are searched for. If the file cannot be successfully read, then the routine causes a fatal error. </p>
<dlclass="params"><dt>Parameters:</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">fp</td><td>the file handle to read from. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="pre__container_8cc_source.html#l00190">190</a> of file <aclass="el"href="pre__container_8cc_source.html">pre_container.cc</a>.</p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">filename</td><td>the name of the file to read from. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="pre__container_8hh_source.html#l00119">119</a> of file <aclass="el"href="pre__container_8hh_source.html">pre_container.hh</a>.</p>
<p>Stores a particle ID and position, allocating a new memory chunk if necessary. For coordinate directions in which the container is not periodic, the routine checks to make sure that the particle is within the container bounds. If the particle is out of bounds, it is not stored. </p>
<dlclass="params"><dt>Parameters:</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">n</td><td>the numerical ID of the inserted particle. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">(x,y,z)</td><td>the position vector of the inserted particle. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="pre__container_8cc_source.html#l00071">71</a> of file <aclass="el"href="pre__container_8cc_source.html">pre_container.cc</a>.</p>
<p>Transfers the particles stored within the class to a container class. </p>
<dlclass="params"><dt>Parameters:</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">con</td><td>the container class to transfer to. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="pre__container_8cc_source.html#l00099">99</a> of file <aclass="el"href="pre__container_8cc_source.html">pre_container.cc</a>.</p>
<p>Transfers the particles stored within the class to a container class, also recording the order in which particles were stored. </p>
<dlclass="params"><dt>Parameters:</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">vo</td><td>the ordering class to use. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">con</td><td>the container class to transfer to. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="pre__container_8cc_source.html#l00143">143</a> of file <aclass="el"href="pre__container_8cc_source.html">pre_container.cc</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>