Iterator for the neighborhood of the cell structures. More...
#include <CellNNIteratorM.hpp>
Inheritance diagram for CellNNIteratorM< dim, Cell, sh_byte, NNc_size >:Public Member Functions | |
| CellNNIteratorM (size_t cell, const NNc_array< dim, NNc_size > &NNc, Cell &cl) | |
| Cell NN iterator. More... | |
| size_t | getP () |
| Get the value of the cell. More... | |
| size_t | getV () |
| Get the value of the cell. More... | |
Public Member Functions inherited from CellNNIterator< dim, Cell, NNc_size > | |
| __attribute__ ((always_inline)) inline CellNNIterator(size_t cell | |
| Cell NN iterator. More... | |
| 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. More... | |
| __attribute__ ((always_inline)) inline CellNNIterator &operator++() | |
| take the next element More... | |
| __attribute__ ((always_inline)) inline const typename Cell | |
| Get the value of the cell. More... | |
Private Types | |
| typedef boost::low_bits_mask_t< sizeof(size_t) *8-sh_byte > | mask_low |
Additional Inherited Members | |
Data Fields inherited from CellNNIterator< dim, Cell, NNc_size > | |
| const NNc_array< dim, NNc_size > Cell & | cl:NNc_id(0) |
Protected Member Functions inherited from CellNNIterator< dim, Cell, NNc_size > | |
| __attribute__ ((always_inline)) inline void selectValid() | |
| Select non-empty cell. | |
Protected Attributes inherited from CellNNIterator< dim, Cell, NNc_size > | |
| 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. | |
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 |
Definition at line 147 of file CellNNIteratorM.hpp.
|
inline |
Cell NN iterator.
| cell | Cell id |
| NNc | Cell neighborhood indexes (relative) |
| cl | Cell structure |
Definition at line 162 of file CellNNIteratorM.hpp.
|
inline |
Get the value of the cell.
Definition at line 172 of file CellNNIteratorM.hpp.
|
inline |
Get the value of the cell.
Definition at line 182 of file CellNNIteratorM.hpp.