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=. | |
grid_dist_id_iterator_dec (const grid_dist_id_iterator_dec< Decomposition > &tmp) | |
Copy constructor. | |
grid_dist_id_iterator_dec (Decomposition &dec, const size_t(&sz)[Decomposition::dims]) | |
Constructor of the distributed grid iterator. | |
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. | |
bool | isNextGrid () |
Return true if we point to a valid grid. | |
size_t | getGridId () |
Return the index of the grid in which we are iterating. | |
void | nextGrid () |
next grid | |
Box< Decomposition::dims, size_t > | getGridBox () |
Return the actual pointed grid. | |
grid_dist_id_iterator_dec< Decomposition, ghost_or_domain > & | operator++ () |
Get the next element. | |
bool | isNext () |
Check if there is the next element. | |
Decomposition::stype | getSpacing (size_t i) |
Get the spacing of the grid. | |
grid_key_dx< Decomposition::dims > | get () |
Get the actual global key of the grid. | |
Point< Decomposition::dims, typename Decomposition::stype > | getPoint () |
Return the point coordinates. | |
grid_dist_key_dx< Decomposition::dims > | get_dist () |
Get the actual grid key for a distributed grid. | |
grid_key_dx< Decomposition::dims > | getStart () |
Get the starting point of the sub-grid we are iterating. | |
grid_key_dx< Decomposition::dims > | getStop () |
Get the starting point of the sub-grid we are iterating. | |
Private Member Functions | |
void | selectValidGrid () |
from g_c increment g_c until you find a valid grid | |
grid_dist_key_dx< Decomposition::dims > | get_int () |
Get the actual key. | |
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. | |
Box< Decomposition::dims, typename Decomposition::stype > | domain |
Domain. | |
|
inline |
Copy constructor.
tmp | iterator to copy |
Definition at line 111 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 122 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 148 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Definition at line 162 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the actual global key of the grid.
Definition at line 272 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the actual grid key for a distributed grid.
Definition at line 313 of file grid_dist_id_iterator_dec.hpp.
|
inlineprivate |
Get the actual key.
Definition at line 78 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Return the actual pointed grid.
Definition at line 200 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Return the index of the grid in which we are iterating.
Definition at line 180 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Return the point coordinates.
Definition at line 292 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the spacing of the grid.
i |
Definition at line 261 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the starting point of the sub-grid we are iterating.
Definition at line 323 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the starting point of the sub-grid we are iterating.
Definition at line 333 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Check if there is the next element.
Definition at line 246 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Return true if we point to a valid grid.
Definition at line 171 of file grid_dist_id_iterator_dec.hpp.
|
inline |
next grid
Definition at line 189 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Get the next element.
Definition at line 222 of file grid_dist_id_iterator_dec.hpp.
|
inline |
Copy operator=.
tmp | iterator to copy |
Definition at line 92 of file grid_dist_id_iterator_dec.hpp.
|
inlineprivate |
from g_c increment g_c until you find a valid grid
Definition at line 49 of file grid_dist_id_iterator_dec.hpp.
|
private |
Actual iterator.
Definition at line 32 of file grid_dist_id_iterator_dec.hpp.
|
private |
Domain.
Definition at line 44 of file grid_dist_id_iterator_dec.hpp.
|
private |
grid list counter
Definition at line 26 of file grid_dist_id_iterator_dec.hpp.
|
private |
Extension of each grid: domain and ghost + domain.
Definition at line 29 of file grid_dist_id_iterator_dec.hpp.
|
private |
Spacing.
Definition at line 41 of file grid_dist_id_iterator_dec.hpp.
|
private |
start key
Definition at line 35 of file grid_dist_id_iterator_dec.hpp.
|
private |
stop key
Definition at line 38 of file grid_dist_id_iterator_dec.hpp.