Grid key class iterator, iterate through the grid elements on the skin on the grid
In particular given 2 boxes A and B
+----------------------------+ | skin B | | +----------------------+ | | | | | | s | | | | k | | | | i | | | | n | A | | | | | | | | | | | | | | | | | | | | | | | +----------------------+ | | skin | +----------------------------+
The skin is the part in between the two boxes A and B
More in general is the Box B removed of A without border. This iterator respect the boundary conditions
dim | dimensionality of the grid |
Definition at line 54 of file grid_skin_iterator.hpp.
#include <grid_skin_iterator.hpp>
Public Member Functions | |
template<typename T > | |
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 | |
grid_key_dx_iterator_sub_bc< dim > | sub_it [2 *dim] |
Internal iterator for each faces. | |
Private Attributes | |
size_t | act |
Actual iterator. | |
|
inline |
Constructor require a grid_sm<dim,T>
g_sm | grid information |
A | box A |
B | box B |
bc | boundary conditions |
Definition at line 75 of file grid_skin_iterator.hpp.
|
inline |
Get the actual key.
Get the actual key
Definition at line 186 of file grid_skin_iterator.hpp.
|
inline |
Check if there is the next element.
Check if there is the next element
we did not reach the end of the iterator
we reach the end of the iterator
Definition at line 166 of file grid_skin_iterator.hpp.
|
inline |
Get the next element.
Definition at line 149 of file grid_skin_iterator.hpp.
|
inline |
Reset the iterator (it restart from the beginning)
Initialize to 0 the index
Definition at line 194 of file grid_skin_iterator.hpp.
|
private |
Actual iterator.
Definition at line 63 of file grid_skin_iterator.hpp.
|
protected |
Internal iterator for each faces.
Definition at line 58 of file grid_skin_iterator.hpp.