<a href="c__loops_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="l00017"></a><span class="lineno"> 17</span> <span class="comment">/** A type associated with a c_loop_subset class, determining what type of</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * geometrical region to loop over. */</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">/** \brief A class for storing ordering information when particles are added to</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * a container.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * When particles are added to a container class, they are sorted into an</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * internal computational grid of blocks. The particle_order class provides a</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * mechanism for remembering which block particles were sorted into. The import</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> * and put routines in the container class have variants that also take a</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> * particle_order class. Each time they are called, they will store the block</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> * that the particle was sorted into, plus the position of the particle within</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> * the block. The particle_order class can used by the c_loop_order class to</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> * specifically loop over the particles that have their information stored</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> * within it. */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="classvoro_1_1particle__order.html"> 37</a></span> <span class="keyword">class </span><a class="code" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"> /** A pointer to the array holding the ordering. */</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> /** A pointer to the next position in the ordering array in</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"> * which to store an entry. */</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> /** The current memory allocation for the class, set to the</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> * number of entries which can be stored. */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> /** The particle_order constructor allocates memory to store the</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"> /** The particle_order destructor frees the dynamically allocated</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"> * memory used to store the ordering information. */</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> /** Adds a record to the order, corresponding to the memory</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> * address of where a particle was placed into the container.</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> * \param[in] ijk the block into which the particle was placed.</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"> * \param[in] q the position within the block where the</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">/** \brief Base class for looping over particles in a container.</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> * This class forms the base of all classes that can loop over a subset of</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> * particles in a contaner in some order. When initialized, it stores constants</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> * about the corresponding container geometry. It also contains a number of</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> * routines for interrogating which particle currently being considered by the</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> * loop, which are common between all of the derived classes. */</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__base.html"> 78</a></span> <span class="keyword">class </span><a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a> {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> /** The number of blocks in the x direction. */</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"> /** The number of blocks in the y direction. */</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"> /** The number of blocks in the z direction. */</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> /** A constant, set to the value of nx multiplied by ny, which</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> * is used in the routines that step through blocks in</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</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="l00091"></a><span class="lineno"> 91</span> <span class="comment"> * the routines that step through blocks in sequence. */</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> /** The number of floating point numbers per particle in the</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"> /** A pointer to the particle position information in the</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"> /** A pointer to the particle ID information in the associated</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> /** A pointer to the particle counts in the associated</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> /** The current x-index of the block under consideration by the</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> /** The current y-index of the block under consideration by the</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"> /** The current z-index of the block under consideration by the</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> /** The current index of the block under consideration by the</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> /** The index of the particle under consideration within the current</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"> /** The constructor copies several necessary constants from the</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment"> * base container class.</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment"> * \param[in] con the container class to use. */</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> /** Returns the position vector of the particle currently being</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment"> * considered by the loop.</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"> * \param[out] (x,y,z) the position vector of the particle. */</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"> /** Returns the ID, position vector, and radius of the particle</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> * currently being considered by the loop.</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> * \param[out] (x,y,z) the position vector of the particle.</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"> * \param[out] r the radius of the particle. If no radius</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"> * information is available the default radius</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> * value is returned. */</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> /** Returns the x position of the particle currently being</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> * considered by the loop. */</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"> /** Returns the y position of the particle currently being</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"> * considered by the loop. */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"> /** Returns the z position of the particle currently being</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> * considered by the loop. */</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"> /** Returns the ID of the particle currently being considered</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"> * by the loop. */</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">/** \brief Class for looping over all of the particles in a container.</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"> * This is one of the simplest loop classes, that scans the computational</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"> * blocks in order, and scans all the particles within each block in order. */</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__all.html"> 165</a></span> <span class="keyword">class </span><a class="code" href="classvoro_1_1c__loop__all.html" title="Class for looping over all of the particles in a container.">c_loop_all</a> : <span class="keyword">public</span> <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a> {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment"> /** The constructor copies several necessary constants from the</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment"> * base container class.</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment"> * \param[in] con the container class to use. */</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__all.html#a255049d5c5f878a24804ed2e29043e68"> 171</a></span>  <a class="code" href="classvoro_1_1c__loop__all.html#a255049d5c5f878a24804ed2e29043e68">c_loop_all</a>(c_class &con) : <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a>(con) {}<span class="comment"></span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment"> /** Sets the class to consider the first particle.</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment"> * \return True if there is any particle to consider, false</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment"> /** Finds the next particle to test.</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment"> * \return True if there is another particle, false if no more</span></div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment"> /** Updates the internal variables to find the next</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment"> * computational block with any particles.</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"> * \return True if another block is found, false if there are</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment"> * no more blocks. */</span></div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment">/** \brief Class for looping over a subset of particles in a container.</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"> * This class can loop over a subset of particles in a certain geometrical</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> * region within the container. The class can be set up to loop over a</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment"> * rectangular box or sphere. It can also rectangular group of internal</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__subset.html"> 218</a></span> <span class="keyword">class </span><a class="code" href="classvoro_1_1c__loop__subset.html" title="Class for looping over a subset of particles in a container.">c_loop_subset</a> : <span class="keyword">public</span> <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a> {</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="comment"> /** The current mode of operation, determining whether tests</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="comment"> * should be applied to particles to ensure they are within a</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment"> /** The constructor copies several necessary constants from the</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="comment"> * base container class.</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment"> * \param[in] con the container class to use. */</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"> /** Finds the next particle to test.</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> * \return True if there is another particle, false if no more</span></div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment">/** \brief Class for looping over all of the particles specified in a</span></div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment"> * The particle_order class can be used to create a specific order of particles</span></div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="comment"> * within the container. This class can then loop over these particles in this</span></div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="comment"> * order. The class is particularly useful in cases where the ordering of the</span></div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="comment"> * output must match the ordering of particles as they were inserted into the</span></div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__order.html"> 268</a></span> <span class="keyword">class </span><a class="code" 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> : <span class="keyword">public</span> <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a> {</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="comment"> /** A reference to the ordering class to use. */</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__order.html#a3a9be1df3e0f88e0e3e6fc0458949987"> 271</a></span>  <a class="code" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> &<a class="code" href="classvoro_1_1c__loop__order.html#a3a9be1df3e0f88e0e3e6fc0458949987">vo</a>;<span class="comment"></span></div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="comment"> /** A pointer to the current position in the ordering class. */</span></div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="comment"> /** A pointer to the end position in the ordering class. */</span></div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="comment"> /** The constructor copies several necessary constants from the</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment"> * base class, and sets up a reference to the ordering class to</span></div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="comment"> * \param[in] con the container class to use.</span></div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="comment"> * \param[in] vo_ the ordering class to use. */</span></div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__order.html#a08bc288a867bff0716d67fde7f18b892"> 282</a></span>  <a class="code" href="classvoro_1_1c__loop__order.html#a08bc288a867bff0716d67fde7f18b892">c_loop_order</a>(c_class &con,<a class="code" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> &vo_)</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  : <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a>(con), <a class="code" href="classvoro_1_1c__loop__order.html#a3a9be1df3e0f88e0e3e6fc0458949987">vo</a>(vo_), nx(con.nx), nxy(con.nxy) {}<span class="comment"></span></div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="comment"> /** Sets the class to consider the first particle.</span></div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="comment"> * \return True if there is any particle to consider, false</span></div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment"> /** Finds the next particle to test.</span></div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="comment"> * \return True if there is another particle, false if no more</span></div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment"> /** The number of computational blocks in the x direction. */</span></div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment"> /** The number of computational blocks in a z-slice. */</span></div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="comment"> /** Takes the current block index and computes indices in the</span></div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="comment"> * x, y, and z directions. */</span></div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="comment">/** \brief A class for looping over all particles in a container_periodic or</span></div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="comment"> * Since the container_periodic and container_periodic_poly classes have a</span></div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="comment"> * fundamentally different memory organization, the regular loop classes cannot</span></div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="comment"> * be used with them. */</span></div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__all__periodic.html"> 325</a></span> <span class="keyword">class </span><a class="code" href="classvoro_1_1c__loop__all__periodic.html" title="A class for looping over all particles in a container_periodic or container_periodic_poly class...">c_loop_all_periodic</a> : <span class="keyword">public</span> <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a> {</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="comment"> /** The constructor copies several necessary constants from the</span></div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment"> * \param[in] con the periodic container class to use. */</span></div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="comment"> /** Sets the class to consider the first particle.</span></div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="comment"> * \return True if there is any particle to consider, false</span></div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="comment"> /** Finds the next particle to test.</span></div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="comment"> * \return True if there is another particle, false if no more</span></div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="comment"> /** The lower y index (inclusive) of the primary domain within</span></div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="comment"> /** The lower y index (inclusive) of the primary domain within</span></div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="comment"> /** The upper y index (exclusive) of the primary domain within</span></div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment"> /** The upper z index (exclusive) of the primary domain within</span></div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="comment"> /** The index of the (0,0,0) block within the block structure.</span></div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="comment"> /** A value to increase ijk by when the z index is increased.</span></div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment"> /** Updates the internal variables to find the next</span></div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="comment"> * computational block with any particles.</span></div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <span class="comment"> * \return True if another block is found, false if there are</span></div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="comment"> * no more blocks. */</span></div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="comment">/** \brief Class for looping over all of the particles specified in a</span></div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <span class="comment"> * pre-assembled particle_order class, for use with container_periodic classes.</span></div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> <span class="comment"> * The particle_order class can be used to create a specific order of particles</span></div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="comment"> * within the container. This class can then loop over these particles in this</span></div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="comment"> * order. The class is particularly useful in cases where the ordering of the</span></div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="comment"> * output must match the ordering of particles as they were inserted into the</span></div>
<div class="line"><a name="l00403"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__order__periodic.html"> 403</a></span> <span class="keyword">class </span><a class="code" href="classvoro_1_1c__loop__order__periodic.html" title="Class for looping over all of the particles specified in a pre-assembled particle_order class...">c_loop_order_periodic</a> : <span class="keyword">public</span> <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a> {</div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"> /** A reference to the ordering class to use. */</span></div>
<div class="line"><a name="l00406"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__order__periodic.html#a73e215fc8915ed65f17e633d85c0f018"> 406</a></span>  <a class="code" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> &<a class="code" href="classvoro_1_1c__loop__order__periodic.html#a73e215fc8915ed65f17e633d85c0f018">vo</a>;<span class="comment"></span></div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> <span class="comment"> /** A pointer to the current position in the ordering class. */</span></div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="comment"> /** A pointer to the end position in the ordering class. */</span></div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="comment"> /** The constructor copies several necessary constants from the</span></div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="comment"> * base class, and sets up a reference to the ordering class to</span></div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="comment"> * \param[in] con the container class to use.</span></div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> <span class="comment"> * \param[in] vo_ the ordering class to use. */</span></div>
<div class="line"><a name="l00417"></a><span class="lineno"><a class="code" href="classvoro_1_1c__loop__order__periodic.html#adb9aea9a009c1dfdd231b608257d04f9"> 417</a></span>  <a class="code" href="classvoro_1_1c__loop__order__periodic.html#adb9aea9a009c1dfdd231b608257d04f9">c_loop_order_periodic</a>(c_class &con,<a class="code" href="classvoro_1_1particle__order.html" title="A class for storing ordering information when particles are added to a container.">particle_order</a> &vo_)</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  : <a class="code" href="classvoro_1_1c__loop__base.html" title="Base class for looping over particles in a container.">c_loop_base</a>(con), <a class="code" href="classvoro_1_1c__loop__order__periodic.html#a73e215fc8915ed65f17e633d85c0f018">vo</a>(vo_), nx(con.nx), oxy(con.nx*con.oy) {}<span class="comment"></span></div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> <span class="comment"> /** Sets the class to consider the first particle.</span></div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> <span class="comment"> * \return True if there is any particle to consider, false</span></div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="comment"> /** Finds the next particle to test.</span></div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span> <span class="comment"> * \return True if there is another particle, false if no more</span></div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <span class="comment"> /** The number of computational blocks in the x direction. */</span></div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> <span class="comment"> /** The number of computational blocks in a z-slice. */</span></div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> <span class="comment"> /** Takes the current block index and computes indices in the</span></div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> <span class="comment"> * x, y, and z directions. */</span></div>