Voro++
|
Class for looping over all of the particles specified in a pre-assembled particle_order class. More...
#include <c_loops.hh>
Public Member Functions | |
template<class c_class > | |
c_loop_order (c_class &con, particle_order &vo_) | |
bool | start () |
bool | inc () |
Data Fields | |
particle_order & | vo |
int * | cp |
int * | op |
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.
Definition at line 274 of file c_loops.hh.
voro::c_loop_order::c_loop_order | ( | c_class & | con, |
particle_order & | vo_ | ||
) | [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. |
Definition at line 288 of file c_loops.hh.
bool voro::c_loop_order::inc | ( | ) | [inline] |
Finds the next particle to test.
Definition at line 304 of file c_loops.hh.
bool voro::c_loop_order::start | ( | ) | [inline] |
Sets the class to consider the first particle.
Definition at line 293 of file c_loops.hh.
A pointer to the current position in the ordering class.
Definition at line 279 of file c_loops.hh.
A pointer to the end position in the ordering class.
Definition at line 281 of file c_loops.hh.
A reference to the ordering class to use.
Definition at line 277 of file c_loops.hh.