Iterator for the neighborhood of the cell structures. More...
#include <VerletNNIterator.hpp>
Inheritance diagram for VerletNNIterator< dim, Ver >:Public Member Functions | |
| VerletNNIterator (size_t part_id, Ver &ver) | |
| Cell NN iterator. More... | |
| bool | isNext () |
| Check if there is the next element. More... | |
| VerletNNIterator & | operator++ () |
| take the next element More... | |
| Ver::Mem_type_type::local_index_type | get () |
| Get the value of the cell. More... | |
| void | reset () |
| Resets the iterator to the starting position. | |
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 | |
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 |
Definition at line 16 of file VerletNNIterator.hpp.
|
inline |
Cell NN iterator.
| part_id | Particle id |
| ver | Verlet-list |
Definition at line 40 of file VerletNNIterator.hpp.
|
inline |
Get the value of the cell.
Definition at line 75 of file VerletNNIterator.hpp.
|
inline |
Check if there is the next element.
Definition at line 51 of file VerletNNIterator.hpp.
|
inline |