OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
CellIteratorM< Cell, sh_byte > Class Template Reference

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

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 197 of file CellNNIteratorM.hpp.

#include <CellNNIteratorM.hpp>

+ Inheritance diagram for CellIteratorM< Cell, sh_byte >:

Public Member Functions

 CellIteratorM (const size_t cell, Cell &cl)
 Cell iterator.
 
size_t getP ()
 Get the value of the cell.
 
size_t getV ()
 Get the value of the cell.
 
- Public Member Functions inherited from CellIterator< Cell >
 __attribute__ ((always_inline)) inline CellIterator(const size_t cell
 Cell iterator.
 
Cell ele_id (0)
 
Cell cell (cell)
 
 __attribute__ ((always_inline)) inline bool isNext()
 Check if there is the next element.
 
 __attribute__ ((always_inline)) inline CellIterator &operator++()
 take the next neoghborhood particle
 
 __attribute__ ((always_inline)) inline typename Cell
 Get the value of the cell.
 

Private Types

typedef boost::low_bits_mask_t< sizeof(size_t) *8-sh_bytemask_low
 

Member Typedef Documentation

◆ mask_low

template<typename Cell , unsigned int sh_byte>
typedef boost::low_bits_mask_t<sizeof(size_t)*8-sh_byte> CellIteratorM< Cell, sh_byte >::mask_low
private

Definition at line 200 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 210 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 219 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 229 of file CellNNIteratorM.hpp.


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