OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
ParticleIt_Cells< dim, CellListType > Class Template Reference

This iterator iterate across the particles of a Cell-list following the Cell structure. More...

Detailed Description

template<unsigned int dim, typename CellListType>
class ParticleIt_Cells< dim, CellListType >

This iterator iterate across the particles of a Cell-list following the Cell structure.

Template Parameters
dimDimensionality
CellListTypetype of the cell-list

Definition at line 18 of file ParticleIt_Cells.hpp.

#include <ParticleIt_Cells.hpp>

Public Member Functions

 ParticleIt_Cells (CellListType &cli, const openfpm::vector< size_t > &dom_cell, size_t g_m)
 Initialize the iterator. More...
 
ParticleIt_Cellsoperator++ ()
 Increment to the next particle. More...
 
bool isNext ()
 Return true if there is the next particle. More...
 
size_t get ()
 Get the actual particle id. More...
 

Private Member Functions

void selectValid ()
 Adjust the counters to reach a valid particle element. More...
 

Private Attributes

const size_t * start
 starting position
 
const size_t * stop
 stop position
 
size_t cid
 Actual cell.
 
const openfpm::vector< size_t > & dom_cell
 List of all the domain cells.
 
CellListType & cli
 Celllist type.
 
size_t g_m
 Ghost marker.
 

Constructor & Destructor Documentation

template<unsigned int dim, typename CellListType>
ParticleIt_Cells< dim, CellListType >::ParticleIt_Cells ( CellListType &  cli,
const openfpm::vector< size_t > &  dom_cell,
size_t  g_m 
)
inline

Initialize the iterator.

Parameters
cliCell-list
dom_celldomain cell
g_mghost marker

Definition at line 73 of file ParticleIt_Cells.hpp.

Member Function Documentation

template<unsigned int dim, typename CellListType>
size_t ParticleIt_Cells< dim, CellListType >::get ( )
inline

Get the actual particle id.

Returns
the actual particle id

Definition at line 133 of file ParticleIt_Cells.hpp.

template<unsigned int dim, typename CellListType>
bool ParticleIt_Cells< dim, CellListType >::isNext ( )
inline

Return true if there is the next particle.

Returns
true if there is a new point

Definition at line 123 of file ParticleIt_Cells.hpp.

template<unsigned int dim, typename CellListType>
ParticleIt_Cells& ParticleIt_Cells< dim, CellListType >::operator++ ( )
inline

Increment to the next particle.

Returns
The actual particle iterator

Definition at line 104 of file ParticleIt_Cells.hpp.

template<unsigned int dim, typename CellListType>
void ParticleIt_Cells< dim, CellListType >::selectValid ( )
inlineprivate

Adjust the counters to reach a valid particle element.

Definition at line 44 of file ParticleIt_Cells.hpp.


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