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 |
Cell | cell type on which the iterator is working |
NNc_size | neighborhood size |
impl | implementation specific options NO_CHECK do not do check on access, SAFE do check on access |
Definition at line 27 of file VerletNNIterator.hpp.
#include <VerletNNIterator.hpp>
Public Member Functions | |
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 Attributes | |
const Ver::Mem_type_type::local_index_type * | start |
start index for the neighborhood | |
const Ver::Mem_type_type::local_index_type * | stop |
stop index for the neighborhood | |
const Ver::Mem_type_type::local_index_type * | ele_id |
actual neighborhood | |
Ver & | ver |
verlet list | |
|
inline |
Cell NN iterator.
part_id | Particle id |
ver | Verlet-list |
Definition at line 51 of file VerletNNIterator.hpp.
|
inline |
Get the value of the cell.
Definition at line 86 of file VerletNNIterator.hpp.
|
inline |
Check if there is the next element.
Definition at line 62 of file VerletNNIterator.hpp.
|
inline |
|
private |
actual neighborhood
Definition at line 36 of file VerletNNIterator.hpp.
|
private |
start index for the neighborhood
Definition at line 30 of file VerletNNIterator.hpp.
|
private |
stop index for the neighborhood
Definition at line 33 of file VerletNNIterator.hpp.
|
private |
verlet list
Definition at line 39 of file VerletNNIterator.hpp.