Given the decomposition it create an iterator. More...
Given the decomposition it create an iterator.
Iterator across the local elements of the distributed grid
dec | Decomposition type |
Definition at line 23 of file grid_dist_id_iterator_dec.hpp.
#include <grid_dist_id_iterator_dec.hpp>
Public Member Functions | |
grid_dist_id_iterator_dec < Decomposition > & | operator= (const grid_dist_id_iterator_dec< Decomposition > &tmp) |
Copy operator=. More... | |
grid_dist_id_iterator_dec (const grid_dist_id_iterator_dec< Decomposition > &tmp) | |
Copy constructor. More... | |
grid_dist_id_iterator_dec (Decomposition &dec, const size_t(&sz)[Decomposition::dims]) | |
Constructor of the distributed grid iterator. More... | |
grid_dist_id_iterator_dec (Decomposition &dec, const size_t(&sz)[Decomposition::dims], grid_key_dx< Decomposition::dims > start, grid_key_dx< Decomposition::dims > stop) | |
Constructor of the distributed grid iterator. More... | |
grid_dist_id_iterator_dec < Decomposition > & | operator++ () |
Get the next element. More... | |
bool | isNext () |
Check if there is the next element. More... | |
Decomposition::stype | getSpacing (size_t i) |
Get the spacing of the grid. More... | |
grid_key_dx< Decomposition::dims > | get () |
Get the actual global key of the grid. More... | |
grid_dist_key_dx < Decomposition::dims > | get_dist () |
Get the actual grid key for a distributed grid. More... | |
grid_key_dx< Decomposition::dims > | getStart () |
Get the starting point of the sub-grid we are iterating. More... | |
grid_key_dx< Decomposition::dims > | getStop () |
Get the starting point of the sub-grid we are iterating. More... | |
Private Member Functions | |
void | selectValidGrid () |
from g_c increment g_c until you find a valid grid More... | |
grid_dist_key_dx < Decomposition::dims > | get_int () |
Get the actual key. More... | |
Private Attributes | |
size_t | g_c |
grid list counter | |
openfpm::vector< GBoxes < Decomposition::dims > > | gdb_ext |
Extension of each grid: domain and ghost + domain. | |
grid_key_dx_iterator_sub < Decomposition::dims > | a_it |
Actual iterator. | |
grid_key_dx< Decomposition::dims > | start |
start key | |
grid_key_dx< Decomposition::dims > | stop |
stop key | |
Decomposition::stype | spacing [Decomposition::dims] |
Spacing. | |
|
inline |
Copy constructor.
tmp | iterator to copy |
Definition at line 107 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Constructor of the distributed grid iterator.
dec | Decomposition |
sz | size of the grid |
Definition at line 118 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Constructor of the distributed grid iterator.
dec | Decomposition |
sz | size of the grid |
start | point |
stop | point |
Definition at line 142 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the actual global key of the grid.
Definition at line 214 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the actual grid key for a distributed grid.
Definition at line 237 of file grid_dist_id_iterator_dec.hpp.
|
inlineprivate |
Get the actual key.
Definition at line 76 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the spacing of the grid.
i |
Definition at line 203 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the starting point of the sub-grid we are iterating.
Definition at line 247 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the starting point of the sub-grid we are iterating.
Definition at line 257 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Check if there is the next element.
Definition at line 188 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the next element.
Definition at line 164 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Copy operator=.
tmp | iterator to copy |
Definition at line 90 of file grid_dist_id_iterator_dec.hpp.
|
inlineprivate |
from g_c increment g_c until you find a valid grid
Definition at line 47 of file grid_dist_id_iterator_dec.hpp.