This iterator iterate across the particles of a Cell-list following the Cell structure. More...
This iterator iterate across the particles of a Cell-list following the Cell structure.
dim | Dimensionality |
CellListType | type 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. | |
ParticleIt_Cells & | operator++ () |
Increment to the next particle. | |
bool | isNext () |
Return true if there is the next particle. | |
size_t | get () |
Get the actual particle id. | |
Private Member Functions | |
void | selectValid () |
Adjust the counters to reach a valid particle element. | |
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. | |
|
inline |
Initialize the iterator.
cli | Cell-list |
dom_cell | domain cell |
g_m | ghost marker |
Definition at line 73 of file ParticleIt_Cells.hpp.
|
inline |
Get the actual particle id.
Definition at line 139 of file ParticleIt_Cells.hpp.
|
inline |
Return true if there is the next particle.
Definition at line 129 of file ParticleIt_Cells.hpp.
|
inline |
Increment to the next particle.
Definition at line 110 of file ParticleIt_Cells.hpp.
|
inlineprivate |
Adjust the counters to reach a valid particle element.
Definition at line 44 of file ParticleIt_Cells.hpp.
|
private |
Actual cell.
Definition at line 29 of file ParticleIt_Cells.hpp.
|
private |
Celllist type.
Definition at line 35 of file ParticleIt_Cells.hpp.
|
private |
List of all the domain cells.
Definition at line 32 of file ParticleIt_Cells.hpp.
|
private |
Ghost marker.
Definition at line 38 of file ParticleIt_Cells.hpp.
|
private |
starting position
Definition at line 23 of file ParticleIt_Cells.hpp.
|
private |
stop position
Definition at line 26 of file ParticleIt_Cells.hpp.