Iterator for the neighborhood of the cell structures. More...
Iterator for the neighborhood of the cell structures.
In general you never create it directly but you get it from the CellList structures
It iterate across all the element of the selected cell and the near cells
dim | dimensionality of the space where the cell live |
Ver | Base verlet structure |
sh_byte | number of bits for the phase number |
Definition at line 24 of file VerletNNIteratorM.hpp.
#include <VerletNNIteratorM.hpp>
Public Member Functions | |
VerletNNIteratorM (size_t part_id, Ver &ver) | |
Constructor for the Verlet iterator Multi-phase. | |
size_t | getP () |
Get the value of the cell. | |
size_t | getV () |
Get the value of the cell. | |
Public Member Functions inherited from VerletNNIterator< dim, Ver > | |
VerletNNIterator (size_t part_id, Ver &ver) | |
Cell NN iterator. | |
bool | isNext () |
Check if there is the next element. | |
VerletNNIterator & | operator++ () |
take the next element | |
Ver::Mem_type_type::local_index_type | get () |
Get the value of the cell. | |
Private Types | |
typedef boost::high_bit_mask_t< sh_byte > | mask_high |
Mask to get the high bits of a number. | |
typedef boost::low_bits_mask_t< sizeof(size_t) *8-sh_byte > | mask_low |
Mask to get the low bits of a number. | |
|
private |
Mask to get the high bits of a number.
Definition at line 27 of file VerletNNIteratorM.hpp.
|
private |
Mask to get the low bits of a number.
Definition at line 30 of file VerletNNIteratorM.hpp.
|
inline |
Constructor for the Verlet iterator Multi-phase.
Definition at line 39 of file VerletNNIteratorM.hpp.
|
inline |
Get the value of the cell.
Definition at line 49 of file VerletNNIteratorM.hpp.
|
inline |
Get the value of the cell.
Definition at line 59 of file VerletNNIteratorM.hpp.