<div class="textblock"><p>When particles are added to a container class, they are sorted into an internal computational grid of blocks. The <a class="el" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> class provides a mechanism for remembering which block particles were sorted into. The import and put routines in the container class have variants that also take a <a class="el" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> class. Each time they are called, they will store the block that the particle was sorted into, plus the position of the particle within the block. The <a class="el" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> class can used by the <a class="el" href="classvoro_1_1c__loop__order.html" title="Class for looping over all of the particles specified in a pre-assembled particle_order class...">c_loop_order</a> class to specifically loop over the particles that have their information stored within it. </p>
<p>Definition at line <a class="el" href="c__loops_8hh_source.html#l00037">37</a> of file <a class="el" href="c__loops_8hh_source.html">c_loops.hh</a>.</p>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<p>The <a class="el" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> constructor allocates memory to store the ordering information. </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">init_size</td><td>the initial amount of memory to allocate. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="c__loops_8hh_source.html#l00051">51</a> of file <a class="el" href="c__loops_8hh_source.html">c_loops.hh</a>.</p>
<p>The <a class="el" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> destructor frees the dynamically allocated memory used to store the ordering information. </p>
<p>Definition at line <a class="el" href="c__loops_8hh_source.html#l00055">55</a> of file <a class="el" href="c__loops_8hh_source.html">c_loops.hh</a>.</p>
<p>Adds a record to the order, corresponding to the memory address of where a particle was placed into the container. </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">ijk</td><td>the block into which the particle was placed. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">q</td><td>the position within the block where the particle was placed. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="c__loops_8hh_source.html#l00063">63</a> of file <a class="el" href="c__loops_8hh_source.html">c_loops.hh</a>.</p>
<p>A pointer to the array holding the ordering. </p>
<p>Definition at line <a class="el" href="c__loops_8hh_source.html#l00040">40</a> of file <a class="el" href="c__loops_8hh_source.html">c_loops.hh</a>.</p>
<p>A pointer to the next position in the ordering array in which to store an entry. </p>
<p>Definition at line <a class="el" href="c__loops_8hh_source.html#l00043">43</a> of file <a class="el" href="c__loops_8hh_source.html">c_loops.hh</a>.</p>
<p>The current memory allocation for the class, set to the number of entries which can be stored. </p>
<p>Definition at line <a class="el" href="c__loops_8hh_source.html#l00046">46</a> of file <a class="el" href="c__loops_8hh_source.html">c_loops.hh</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>