Iterator for the neighborhood of the cell structures with free radius. More...
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 |
impl | implementation specific options NO_CHECK do not do check on access, SAFE do check on access |
Definition at line 25 of file CellListNNIteratorRadius.hpp.
#include <CellListNNIteratorRadius.hpp>
Public Member Functions | |
CellNNIteratorRadius (size_t cell, const openfpm::vector< long int > &NNc, Cell &cl) | |
Cell NN iterator. | |
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. | |
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 |
|
inline |
Cell NN iterator.
cell | Cell id |
NNc | Cell neighborhood indexes (relative) |
cl | Cell structure |
Definition at line 74 of file CellListNNIteratorRadius.hpp.
|
inline |
Get the value of the cell.
Definition at line 115 of file CellListNNIteratorRadius.hpp.
|
inline |
Check if there is the next element.
Definition at line 91 of file CellListNNIteratorRadius.hpp.
|
inline |
take the next element
Definition at line 101 of file CellListNNIteratorRadius.hpp.
|
inlineprivate |
Select non-empty cell.
Definition at line 48 of file CellListNNIteratorRadius.hpp.
|
private |
Definition at line 43 of file CellListNNIteratorRadius.hpp.
|
private |
Definition at line 34 of file CellListNNIteratorRadius.hpp.
|
private |
Definition at line 28 of file CellListNNIteratorRadius.hpp.
|
private |
Definition at line 37 of file CellListNNIteratorRadius.hpp.
|
private |
Definition at line 40 of file CellListNNIteratorRadius.hpp.
|
private |
Definition at line 31 of file CellListNNIteratorRadius.hpp.