Grid key sparse iterator. More...
Grid key sparse iterator.
Definition at line 425 of file SparseGrid_iterator.hpp.
#include <SparseGrid_iterator.hpp>
Public Member Functions | |
grid_key_sparse_dx_iterator () | |
Default constructor. | |
grid_key_sparse_dx_iterator (const openfpm::vector< mheader< n_ele > > *header_mask, const openfpm::vector< cheader< dim > > *header_inf, const grid_key_dx< dim >(*lin_id_pos)[n_ele]) | |
grid_key_sparse_dx_iterator< dim, n_ele > & | operator++ () |
void | reinitialize (const grid_key_sparse_dx_iterator< dim, n_ele > &g_s_it) |
Reinitialize the iterator. | |
void | reinitialize (const grid_key_sparse_dx_iterator_sub< dim, n_ele > &g_s_it) |
Reinitialize the iterator. | |
grid_key_sparse_lin_dx | getKeyF () |
Return the actual point. | |
grid_key_dx< dim > | get () const |
Return the position of the actual point in coordinates. | |
bool | isNext () |
Return true if there is a next grid point. | |
Private Member Functions | |
void | SelectValidAndFill_mask_it () |
Everytime we move to a new chunk we calculate on which indexes we have to iterate. | |
Private Attributes | |
const openfpm::vector< mheader< n_ele > > * | header_mask |
It store the information of each chunk. | |
const openfpm::vector< cheader< dim > > * | header_inf |
It store the information of each chunk. | |
const grid_key_dx< dim >(* | lin_id_pos )[n_ele] |
linearized id to position in coordinates conversion | |
size_t | chunk_id |
point to the actual chunk | |
int | mask_nele |
Number of points in mask_it. | |
size_t | mask_it_pnt |
Actual point in mask it. | |
short unsigned int | mask_it [n_ele] |
set of index in the chunk on which we have to iterate | |
|
inline |
Default constructor.
Definition at line 476 of file SparseGrid_iterator.hpp.
|
inline |
Definition at line 478 of file SparseGrid_iterator.hpp.
|
inline |
Return the position of the actual point in coordinates.
Definition at line 561 of file SparseGrid_iterator.hpp.
|
inline |
Return the actual point.
Definition at line 551 of file SparseGrid_iterator.hpp.
|
inline |
Return true if there is a next grid point.
Definition at line 580 of file SparseGrid_iterator.hpp.
|
inline |
Definition at line 486 of file SparseGrid_iterator.hpp.
|
inline |
Reinitialize the iterator.
it re-initialize the iterator with the passed grid_key_dx_iterator_sub the actual position of the grid_key_dx_iterator_sub is ignored
g_s_it | grid_key_dx_iterator |
Definition at line 514 of file SparseGrid_iterator.hpp.
|
inline |
Reinitialize the iterator.
it re-initialize the iterator with the passed grid_key_dx_iterator_sub the actual position of the grid_key_dx_iterator_sub is ignored
g_s_it | grid_key_dx_iterator |
Definition at line 534 of file SparseGrid_iterator.hpp.
|
inlineprivate |
Everytime we move to a new chunk we calculate on which indexes we have to iterate.
Definition at line 452 of file SparseGrid_iterator.hpp.
|
private |
point to the actual chunk
Definition at line 437 of file SparseGrid_iterator.hpp.
|
private |
It store the information of each chunk.
Definition at line 431 of file SparseGrid_iterator.hpp.
|
private |
It store the information of each chunk.
Definition at line 428 of file SparseGrid_iterator.hpp.
|
private |
linearized id to position in coordinates conversion
Definition at line 434 of file SparseGrid_iterator.hpp.
|
private |
set of index in the chunk on which we have to iterate
Definition at line 446 of file SparseGrid_iterator.hpp.
|
private |
Actual point in mask it.
Definition at line 443 of file SparseGrid_iterator.hpp.
|
private |
Number of points in mask_it.
Definition at line 440 of file SparseGrid_iterator.hpp.