Package gov.nih.mipav.model.structures
Class Voro.c_loop_all_periodic
java.lang.Object
gov.nih.mipav.model.structures.Voro.c_loop_base
gov.nih.mipav.model.structures.Voro.c_loop_all_periodic
- Enclosing class:
Voro
\brief A class for looping over all particles in a container_periodic or
container_periodic_poly class.
Since the container_periodic and container_periodic_poly classes have a
fundamentally different memory organization, the regular loop classes cannot
be used with them.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe lower y index (inclusive) of the primary domain within the block structure.private intThe lower y index (inclusive) of the primary domain within the block structure.private intThe index of the (0,0,0) block within the block structure.private intA value to increase ijk by when the z index is increased.private intThe upper y index (exclusive) of the primary domain within the block structure.private intThe upper z index (exclusive) of the primary domain within the block structure. -
Constructor Summary
ConstructorsConstructorDescriptionThe constructor copies several necessary constants from the base periodic container class. -
Method Summary
-
Field Details
-
ey
private int eyThe lower y index (inclusive) of the primary domain within the block structure. -
ez
private int ezThe lower y index (inclusive) of the primary domain within the block structure. -
wy
private int wyThe upper y index (exclusive) of the primary domain within the block structure. -
wz
private int wzThe upper z index (exclusive) of the primary domain within the block structure. -
ijk0
private int ijk0The index of the (0,0,0) block within the block structure. -
inc2
private int inc2A value to increase ijk by when the z index is increased.
-
-
Constructor Details
-
c_loop_all_periodic
The constructor copies several necessary constants from the base periodic container class. \param[in] con the periodic container class to use. -
c_loop_all_periodic
-
-
Method Details
-
start
public boolean start()Sets the class to consider the first particle. \return True if there is any particle to consider, false otherwise. -
inc
public boolean inc()Finds the next particle to test. \return True if there is another particle, false if no more particles are available. -
next_block
private boolean next_block()Updates the internal variables to find the next computational block with any particles. \return True if another block is found, false if there are no more blocks.
-