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 |
impl | implementation specific options NO_CHECK do not do check on access, SAFE do check on access |
Definition at line 36 of file CellNNIteratorRuntime.hpp.
#include <CellNNIteratorRuntime.hpp>
Public Member Functions | |
CellNNIterator (size_t cell, const long int *NNc, size_t 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... | |
const Cell::Mem_type_type::loc_index & | get () |
Get the value of the cell. More... | |
Protected Member Functions | |
void | selectValid () |
Select non-empty cell. More... | |
Protected Attributes | |
const Cell::Mem_type_type::loc_index * | start_id |
actual element id | |
const Cell::Mem_type_type::loc_index * | stop_id |
stop id to read the end of the cell | |
size_t | NNc_id |
Actual NNc_id;. | |
size_t | NNc_size |
Size of the neighboring cells. | |
const long int | cell |
Center cell, or cell for witch we are searching the NN-cell. | |
size_t | cell_id |
actual cell id = NNc[NNc_id]+cell stored for performance reason | |
Cell & | cl |
Cell list. | |
const long int * | NNc |
NN cell id. | |
|
inline |
Cell NN iterator.
cell | Cell id |
NNc | Cell neighborhood indexes (relative) |
NNc_size | size of the neighborhood |
cl | Cell structure |
Definition at line 98 of file CellNNIteratorRuntime.hpp.
|
inline |
Get the value of the cell.
Definition at line 137 of file CellNNIteratorRuntime.hpp.
|
inline |
Check if there is the next element.
Definition at line 111 of file CellNNIteratorRuntime.hpp.
|
inline |
|
inlineprotected |
Select non-empty cell.
Definition at line 67 of file CellNNIteratorRuntime.hpp.