Class containing data structures common across all particle container classes.
More...
This class contains constants and data structures that are common across all particle container classes. It contains constants setting the size of the underlying subgrid of blocks that forms the basis of the Voronoi cell computations. It also constructs bound tables that are used in the Voronoi cell computation, and contains a number of routines that are common across all container classes.
Definition at line 25 of file v_base.hh.
int voro::voro_base::step_div |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
|
inlineprotected |
A custom integer division function that returns consistent stepping for negative numbers. For example, (-2,-1,0,1,2) step_div 2 is (-1,-1,0,0,1).
- Parameters
-
[in] | (a,b) | the input integers. |
- Returns
- The value of a div b, consistent for negative numbers.
Definition at line 81 of file v_base.hh.
int voro::voro_base::step_int |
( |
double |
a | ) |
|
|
inlineprotected |
A custom int function that returns consistent stepping for negative numbers, so that (-1.5, -0.5, 0.5, 1.5) maps to (-2,-1,0,1).
- Parameters
-
[in] | a | the number to consider. |
- Returns
- The value of the custom int operation.
Definition at line 67 of file v_base.hh.
int voro::voro_base::step_mod |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
|
inlineprotected |
A custom modulo function that returns consistent stepping for negative numbers. For example, (-2,-1,0,1,2) step_mod 2 is (0,1,0,1,0).
- Parameters
-
[in] | (a,b) | the input integers. |
- Returns
- The value of a modulo b, consistent for negative numbers.
Definition at line 74 of file v_base.hh.