Iterator for the neighborhood of the cell structures with free radius. More...
#include <CellNNIteratorRadius.hpp>
Public Member Functions | |
| CellNNIteratorRadius (size_t cell, const openfpm::vector< long int > &NNc, Cell &cl) | |
| Cell NN iterator. More... | |
| bool | isNext () |
| Check if there is the next element. | |
| CellNNIteratorRadius & | operator++ () |
| take the next element | |
| Cell::value_type & | get () |
| Get the value of the cell. More... | |
Private Member Functions | |
| void | selectValid () |
| Select non-empty cell. | |
Private Attributes | |
| Cell & | cl |
| size_t | NNc_id |
| size_t | cell_id |
| size_t | ele_id |
| const openfpm::vector< long int > & | NNc |
| const long int | cell |
Iterator for the neighborhood of the cell structures with free radius.
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 (inside a radius)
| 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 24 of file CellNNIteratorRadius.hpp.
|
inline |
Cell NN iterator.
| cell | Cell id |
| NNc | Cell neighborhood indexes (relative) |
| cl | Cell structure |
Definition at line 73 of file CellNNIteratorRadius.hpp.
|
inline |
Get the value of the cell.
Definition at line 114 of file CellNNIteratorRadius.hpp.