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. More... | |
ParticleIt_Cells & | operator++ () |
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. | |
|
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 133 of file ParticleIt_Cells.hpp.
|
inline |
Return true if there is the next particle.
Definition at line 123 of file ParticleIt_Cells.hpp.
|
inline |
Increment to the next particle.
Definition at line 104 of file ParticleIt_Cells.hpp.
|
inlineprivate |
Adjust the counters to reach a valid particle element.
Definition at line 44 of file ParticleIt_Cells.hpp.