![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Class for looping over all of the particles specified in a pre-assembled particle_order class, for use with container_periodic classes. More...
#include <c_loops.hh>
Inheritance diagram for voro::c_loop_order_periodic:Public Member Functions | |
| template<class c_class > | |
| c_loop_order_periodic (c_class &con, particle_order &vo_) | |
| bool | start () |
| bool | inc () |
Public Member Functions inherited from voro::c_loop_base | |
| template<class c_class > | |
| c_loop_base (c_class &con) | |
| void | pos (double &x, double &y, double &z) |
| void | pos (int &pid, double &x, double &y, double &z, double &r) |
| double | x () |
| double | y () |
| double | z () |
| int | pid () |
Public Attributes | |
| particle_order & | vo |
| int * | cp |
| int * | op |
Public Attributes inherited from voro::c_loop_base | |
| const int | nx |
| const int | ny |
| const int | nz |
| const int | nxy |
| const int | nxyz |
| const int | ps |
| double ** | p |
| int ** | id |
| int * | co |
| int | i |
| int | j |
| int | k |
| int | ijk |
| int | q |
Class for looping over all of the particles specified in a pre-assembled particle_order class, for use with container_periodic classes.
The particle_order class can be used to create a specific order of particles within the container. This class can then loop over these particles in this order. The class is particularly useful in cases where the ordering of the output must match the ordering of particles as they were inserted into the container.
|
inline |
The constructor copies several necessary constants from the base class, and sets up a reference to the ordering class to use.
| [in] | con | the container class to use. |
| [in] | vo_ | the ordering class to use. |
|
inline |
Finds the next particle to test.
|
inline |
Sets the class to consider the first particle.
| int* voro::c_loop_order_periodic::cp |
A pointer to the current position in the ordering class.
| int* voro::c_loop_order_periodic::op |
A pointer to the end position in the ordering class.
| particle_order& voro::c_loop_order_periodic::vo |
A reference to the ordering class to use.