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 32 of file CellNNIterator.hpp.
#include <CellNNIterator.hpp>
Public Member Functions | |
CellNNIterator (size_t cell, long int(&NNc)[NNc_size], Cell &cl) | |
Cell NN iterator. More... | |
bool | isNext () |
Check if there is the next element. More... | |
CellNNIterator & | operator++ () |
take the next element More... | |
Cell::value_type & | get () |
Get the value of the cell. More... | |
Private Attributes | |
Cell & | cl |
size_t | NNc_id |
size_t | cell_id |
size_t | ele_id |
const long int(& | NNc )[NNc_size] |
const long int | cell |
|
inline |
Cell NN iterator.
cell | Cell id |
NNc | Cell neighborhood indexes (relative) |
cl | Cell structure |
Definition at line 63 of file CellNNIterator.hpp.
|
inline |
Get the value of the cell.
Definition at line 107 of file CellNNIterator.hpp.
|
inline |
Check if there is the next element.
Definition at line 73 of file CellNNIterator.hpp.
|
inline |
take the next element
Definition at line 83 of file CellNNIterator.hpp.