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 24 of file grid_dist_id_iterator_dec_skin.hpp.
#include <grid_dist_id_iterator_dec_skin.hpp>
Data Structures | |
struct | gp_sub |
Internal struct. More... | |
Public Member Functions | |
grid_dist_id_iterator_dec_skin (const grid_dist_id_iterator_dec_skin< Decomposition > &tmp) | |
Copy constructor. | |
grid_dist_id_iterator_dec_skin (grid_dist_id_iterator_dec_skin< Decomposition > &&tmp) | |
Copy constructor. | |
grid_dist_id_iterator_dec_skin (Decomposition &dec, const grid_sm< Decomposition::dims, void > &g_sm, const Box< Decomposition::dims, size_t > &A, const Box< Decomposition::dims, size_t > &B, const size_t(&bc)[Decomposition::dims]) | |
Constructor of the distributed grid iterator. | |
~grid_dist_id_iterator_dec_skin () | |
Destructor. | |
grid_dist_id_iterator_dec_skin< Decomposition > & | 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. | |
grid_dist_key_dx< Decomposition::dims > | get_int () |
Get the actual key. | |
grid_dist_id_iterator_dec_skin< Decomposition > & | operator= (const grid_dist_id_iterator_dec_skin< Decomposition > &tmp) |
Copy operator=. | |
grid_dist_id_iterator_dec_skin< Decomposition > & | operator= (grid_dist_id_iterator_dec_skin< Decomposition > &&tmp) |
Copy operator=. | |
Private Member Functions | |
void | selectValidGrid () |
from g_c increment g_c until you find a valid grid | |
void | construct_sub_it () |
construct sub-iterators | |
Private Attributes | |
size_t | a_its_p |
a_its element in this moment selected | |
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 |
Internal grid sub-iterator. | |
openfpm::vector< gp_sub > | a_its |
Actual sub-iterators. | |
Decomposition::stype | spacing [Decomposition::dims] |
Spacing. | |
Additional Inherited Members | |
Protected Member Functions inherited from grid_skin_iterator_bc< Decomposition::dims > | |
grid_skin_iterator_bc (const grid_sm< dim, T > &g_sm, const Box< dim, size_t > &A, const Box< dim, size_t > &B, const size_t(&bc)[dim]) | |
Constructor require a grid_sm<dim,T> | |
grid_skin_iterator_bc< dim > & | operator++ () |
Get the next element. | |
bool | isNext () |
Check if there is the next element. | |
grid_key_dx< dim > | get () const |
Get the actual key. | |
void | reset () |
Reset the iterator (it restart from the beginning) | |
Protected Attributes inherited from grid_skin_iterator_bc< Decomposition::dims > | |
grid_key_dx_iterator_sub_bc< dim > | sub_it [2 *dim] |
Internal iterator for each faces. | |
|
inline |
Copy constructor.
tmp | iterator to copy |
Definition at line 124 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Copy constructor.
tmp | iterator to copy |
Definition at line 135 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Constructor of the distributed grid iterator.
dec | Decomposition |
g_sm | grid size on each direction |
A | box A (must be contained into B) |
B | box B |
bc | boundary conditions |
Definition at line 150 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Destructor.
Definition at line 173 of file grid_dist_id_iterator_dec_skin.hpp.
|
inlineprivate |
construct sub-iterators
Definition at line 85 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Get the actual global key of the grid.
Definition at line 234 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Get the actual key.
Definition at line 254 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Get the spacing of the grid.
i | dimension |
Definition at line 223 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Check if there is the next element.
Definition at line 206 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Get the next element.
Definition at line 182 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Copy operator=.
tmp | iterator to copy |
Definition at line 266 of file grid_dist_id_iterator_dec_skin.hpp.
|
inline |
Copy operator=.
tmp | iterator to copy |
Definition at line 288 of file grid_dist_id_iterator_dec_skin.hpp.
|
inlineprivate |
from g_c increment g_c until you find a valid grid
Definition at line 68 of file grid_dist_id_iterator_dec_skin.hpp.
|
private |
Internal grid sub-iterator.
Definition at line 36 of file grid_dist_id_iterator_dec_skin.hpp.
|
private |
Actual sub-iterators.
Definition at line 59 of file grid_dist_id_iterator_dec_skin.hpp.
|
private |
a_its element in this moment selected
Definition at line 27 of file grid_dist_id_iterator_dec_skin.hpp.
|
private |
grid list counter
Definition at line 30 of file grid_dist_id_iterator_dec_skin.hpp.
|
private |
Extension of each grid: domain and ghost + domain.
Definition at line 33 of file grid_dist_id_iterator_dec_skin.hpp.
|
private |
Spacing.
Definition at line 62 of file grid_dist_id_iterator_dec_skin.hpp.