OpenFPM  5.2.0
Project that contain the implementation of distributed structures
CellIteratorM< Cell, sh_byte > Class Template Reference

it iterate through the elements of a cell More...

#include <CellNNIteratorM.hpp>

+ Inheritance diagram for CellIteratorM< Cell, sh_byte >:

Public Member Functions

 CellIteratorM (const size_t cell, Cell &cl)
 Cell 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 CellIterator< Cell >
 __attribute__ ((always_inline)) inline CellIterator(const size_t cell
 Cell iterator. More...
 
Cell ele_id (0)
 
Cell cell (cell)
 
 __attribute__ ((always_inline)) inline bool isNext()
 Check if there is the next element. More...
 
 __attribute__ ((always_inline)) inline CellIterator &operator++()
 take the next neoghborhood particle More...
 
 __attribute__ ((always_inline)) inline 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
 

Detailed Description

template<typename Cell, unsigned int sh_byte>
class CellIteratorM< Cell, sh_byte >

it iterate through the elements of a cell

In general you do not create this object you get it from the CellList structures

Template Parameters
Cellcell type

Definition at line 195 of file CellNNIteratorM.hpp.

Constructor & Destructor Documentation

◆ CellIteratorM()

template<typename Cell , unsigned int sh_byte>
CellIteratorM< Cell, sh_byte >::CellIteratorM ( const size_t  cell,
Cell &  cl 
)
inline

Cell iterator.

Parameters
cellCell id
clCell on which iterate

Definition at line 208 of file CellNNIteratorM.hpp.

Member Function Documentation

◆ getP()

template<typename Cell , unsigned int sh_byte>
size_t CellIteratorM< Cell, sh_byte >::getP ( )
inline

Get the value of the cell.

Returns
the next element object

Definition at line 217 of file CellNNIteratorM.hpp.

◆ getV()

template<typename Cell , unsigned int sh_byte>
size_t CellIteratorM< Cell, sh_byte >::getV ( )
inline

Get the value of the cell.

Returns
the next element object

Definition at line 227 of file CellNNIteratorM.hpp.


The documentation for this class was generated from the following file: