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 34 of file CellNNIterator.hpp.
#include <CellNNIterator.hpp>
Public Member Functions | |
__attribute__ ((always_inline)) inline CellNNIterator(size_t cell | |
Cell NN iterator. | |
const NNc_array< dim, NNc_size > Cell | cell (cell) |
const NNc_array< dim, NNc_size > Cell | cell_id (NNc[NNc_id]+cell) |
const NNc_array< dim, NNc_size > Cell | cl (cl) |
const NNc_array< dim, NNc_size > Cell | NNc (NNc) |
__attribute__ ((always_inline)) inline bool isNext() | |
Check if there is the next element. | |
__attribute__ ((always_inline)) inline CellNNIterator &operator++() | |
take the next element | |
__attribute__ ((always_inline)) inline const typename Cell | |
Get the value of the cell. | |
Data Fields | |
const NNc_array< dim, NNc_size > Cell & | cl:NNc_id(0) |
Protected Member Functions | |
__attribute__ ((always_inline)) inline void selectValid() | |
Select non-empty cell. | |
Protected Attributes | |
const Cell::Mem_type_type::local_index_type * | start_id |
actual element id | |
const Cell::Mem_type_type::local_index_type * | stop_id |
stop id to read the end of the cell | |
size_t | NNc_id |
Actual NNc_id;. | |
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 NNc_array< dim, NNc_size > & | NNc |
NN cell id. | |
|
inline |
Check if there is the next element.
Definition at line 105 of file CellNNIterator.hpp.
|
inline |
CellNNIterator< dim, Cell, NNc_size, impl >::__attribute__ | ( | (always_inline) | ) |
Cell NN iterator.
cell | Cell id |
NNc | Cell neighborhood indexes (relative) |
cl | Cell structure |
|
inline |
Get the value of the cell.
Definition at line 131 of file CellNNIterator.hpp.
|
inlineprotected |
Select non-empty cell.
Definition at line 62 of file CellNNIterator.hpp.
|
inline |
Definition at line 93 of file CellNNIterator.hpp.
|
protected |
Center cell, or cell for witch we are searching the NN-cell.
Definition at line 48 of file CellNNIterator.hpp.
|
protected |
actual cell id = NNc[NNc_id]+cell stored for performance reason
Definition at line 51 of file CellNNIterator.hpp.
|
protected |
Cell list.
Definition at line 54 of file CellNNIterator.hpp.
const NNc_array<dim,NNc_size> Cell& CellNNIterator< dim, Cell, NNc_size, impl >::cl |
Definition at line 92 of file CellNNIterator.hpp.
|
protected |
NN cell id.
Definition at line 57 of file CellNNIterator.hpp.
|
protected |
Actual NNc_id;.
Definition at line 45 of file CellNNIterator.hpp.
|
protected |
actual element id
Definition at line 39 of file CellNNIterator.hpp.
|
protected |
stop id to read the end of the cell
Definition at line 42 of file CellNNIterator.hpp.