<a href="v__base_8hh.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Voro++, a 3D cell-based Voronoi library</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="worklist_8hh.html" title="Header file for setting constants used in the block worklists that are used during cell computation...">worklist.hh</a>"</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">/** \brief Class containing data structures common across all particle container classes.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * This class contains constants and data structures that are common across all</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * particle container classes. It contains constants setting the size of the</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * underlying subgrid of blocks that forms the basis of the Voronoi cell</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * computations. It also constructs bound tables that are used in the Voronoi</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * cell computation, and contains a number of routines that are common across</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> /** The number of blocks in the x direction. */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> /** The number of blocks in the y direction. */</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> /** The number of blocks in the z direction. */</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> /** A constant, set to the value of nx multiplied by ny, which</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> * is used in the routines that step through blocks in</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> /** A constant, set to the value of nx*ny*nz, which is used in</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"> * the routines that step through blocks in sequence. */</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> /** The size of a computational block in the x direction. */</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"> /** The size of a computational block in the y direction. */</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> /** The size of a computational block in the z direction. */</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> /** The inverse box length in the x direction. */</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> /** The inverse box length in the y direction. */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment"> /** The inverse box length in the z direction. */</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment"> /** An array to hold the minimum distances associated with the</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"> * worklists. This array is initialized during container</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"> * construction, by the initialize_radii() routine. */</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> /** A custom int function that returns consistent stepping</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"> * for negative numbers, so that (-1.5, -0.5, 0.5, 1.5) maps</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"> * to (-2,-1,0,1).</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"> * \param[in] a the number to consider.</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> * \return The value of the custom int operation. */</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> /** A custom modulo function that returns consistent stepping</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> * for negative numbers. For example, (-2,-1,0,1,2) step_mod 2</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> * is (0,1,0,1,0).</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> * \return The value of a modulo b, consistent for negative</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> /** A custom integer division function that returns consistent</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> * stepping for negative numbers. For example, (-2,-1,0,1,2)</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"> * \return The value of a div b, consistent for negative</span></div>