The same as grid_key_dx_iterator_sub_p but with periodic boundary. More...
#include <grid_key_dx_iterator_sub_bc.hpp>
Inheritance diagram for grid_key_dx_iterator_sub_bc< dim, stencil, linearizer, warn >:Public Member Functions | |
| grid_key_dx_iterator_sub_bc (const grid_key_dx_iterator_sub_bc &tmp) | |
| grid_key_dx_iterator_sub_bc (grid_key_dx_iterator_sub_bc &&tmp) | |
| grid_key_dx_iterator_sub_bc & | operator= (const grid_key_dx_iterator_sub_bc &tmp) |
| grid_key_dx_iterator_sub_bc & | operator= (grid_key_dx_iterator_sub_bc &&tmp) |
| grid_key_dx_iterator_sub_bc () | |
| Constructor. | |
| grid_key_dx_iterator_sub_bc (const linearizer &g, const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop, const size_t(&bc)[dim]) | |
| Constructor. More... | |
| void | Initialize (const linearizer &g, const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop, const size_t(&bc)[dim]) |
| Initialize the iterator. More... | |
| grid_key_dx_iterator_sub_bc< dim, stencil, linearizer, warn > & | operator++ () |
| Get the next element. More... | |
| bool | isNext () |
| Check if there is the next element. More... | |
| const grid_key_dx< dim > | get () const |
| Return the actual grid key iterator. More... | |
| void | reset () |
| Reset the iterator (it restart from the beginning) | |
Public Member Functions inherited from grid_key_dx_iterator_sub< dim, no_stencil, grid_sm< dim, void >, print_warning_on_adjustment< dim, grid_sm< dim, void > > > | |
| grid_key_dx_iterator_sub () | |
| Default constructor. More... | |
| grid_key_dx_iterator_sub (const grid_key_dx_iterator_sub< dim, no_stencil, grid_sm< dim, void > > &g_s_it) | |
| Constructor from another grid_key_dx_iterator_sub. More... | |
| grid_key_dx_iterator_sub (const grid_sm< dim, void > &g, const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop) | |
| Constructor require a grid grid<dim,T> More... | |
| grid_key_dx_iterator_sub (const grid_sm< dim, void > &g, const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop, const grid_key_dx< dim >(&stencil_pnt)[stencil::nsp]) | |
| Constructor require a grid grid<dim,T> More... | |
| grid_key_dx_iterator_sub (const grid_key_dx< dim >(&stencil_pnt)[stencil::nsp]) | |
| Constructor. More... | |
| grid_key_dx_iterator_sub (const grid_sm< dim, void > &g, const size_t m) | |
| Constructor require a grid grid<dim,T> More... | |
| grid_key_dx_iterator_sub (const grid_sm< dim, void > &g, const size_t(&start)[dim], const size_t(&stop)[dim]) | |
| Constructor require a grid grid<dim,T> More... | |
| grid_key_dx_iterator_sub< dim, no_stencil, grid_sm< dim, void >, print_warning_on_adjustment< dim, grid_sm< dim, void > > > & | operator++ () |
| Get the next element. More... | |
| grid_key_dx_iterator_sub< dim, no_stencil, print_warning_on_adjustment< dim, grid_sm< dim, void > > > & | operator+= (int nsteps) |
| increment the operator by more than one More... | |
| bool | isNext () |
| Check if there is the next element. More... | |
| grid_key_dx< dim > | get () const |
| Return the actual grid key iterator. More... | |
| void | reinitialize (const grid_key_dx_iterator_sub< dim > &g_s_it) |
| Reinitialize the iterator. More... | |
| size_t | getVolume () |
| Get the volume spanned by this sub-grid iterator. More... | |
| void | reset () |
| Reset the iterator (it restart from the beginning) More... | |
| const grid_sm< dim, void > & | getGridInfo () const |
| Return the grid information related to this grid. | |
| const grid_key_dx< dim > & | getStart () const |
| Starting point. More... | |
| const grid_key_dx< dim > & | getStop () const |
| Stop point. More... | |
| void | private_sum () |
| Sum a template constant. More... | |
| void | private_adjust (size_t tot_add) |
| Sum a template constant. More... | |
| void | invalidate () |
Public Member Functions inherited from grid_key_dx_iterator< dim, stencil, linearizer > | |
| grid_key_dx_iterator () | |
| Default constructor. More... | |
| grid_key_dx_iterator (const grid_key_dx_iterator< dim > &g_it) | |
| Constructor from a grid_key_dx_iterator<dim> More... | |
| template<typename grid_lin > | |
| grid_key_dx_iterator (const grid_lin &g, const grid_key_dx< dim >(&stencil_pnt)[stencil::nsp]) | |
| Constructor require a grid_sm<dim,T> More... | |
| grid_key_dx_iterator (const grid_key_dx< dim >(&stencil_pnt)[stencil::nsp]) | |
| Constructor. More... | |
| grid_key_dx_iterator (const linearizer &g) | |
| Constructor require a grid_sm<dim,T> More... | |
| grid_key_dx_iterator< dim > | operator= (const grid_key_dx_iterator< dim > &key_it) |
| Constructor from another grid_key_dx_iterator. More... | |
| grid_key_dx_iterator< dim, stencil, linearizer > & | operator++ () |
| Get the next element. More... | |
| void | set (int d, size_t sz) |
| Set the dimension. More... | |
| template<unsigned int id> | |
| size_t | getStencil () const |
| Get the actual position. More... | |
| bool | isNext () |
| Check if there is the next element. More... | |
| const grid_key_dx< dim > & | get () const |
| Get the actual key. More... | |
| void | reinitialize (const grid_key_dx_iterator< dim > &key) |
| Reinitialize the grid_key_dx_iterator. More... | |
| const linearizer & | getGridInfo () const |
| Get the information about the grid. More... | |
| void | reset () |
| Reset the iterator (it restart from the beginning) | |
| void | calc_stencil_offset (const grid_key_dx< dim > &start_p) |
| Calculate the stencil offset. More... | |
| grid_key_dx< dim > | getStart () |
| Return the starting point of the iteration. More... | |
| grid_key_dx< dim > | getStop () |
| Return the stop point of the iteration. | |
| size_t | getVolume () |
| Get the volume spanned by this sub-grid iterator. More... | |
Private Member Functions | |
| bool | check_invalid (const grid_key_dx< dim > &key, const size_t(&bc)[dim]) |
| Check if the position is valid with the actual boundary conditions. More... | |
Private Attributes | |
| size_t | bc [dim] |
| Boundary conditions. | |
| size_t | act |
| actual iterator box | |
| std::vector< Box< dim, size_t > > | boxes |
| Here we have all the boxes that this iterator produce. | |
Additional Inherited Members | |
Protected Attributes inherited from grid_key_dx_iterator< dim, stencil, linearizer > | |
| grid_key_dx< dim > | gk |
| Actual key. | |
| stencil | stl_code |
The same as grid_key_dx_iterator_sub_p but with periodic boundary.
In this case the boundaries are periodic
Definition at line 19 of file grid_key_dx_iterator_sub_bc.hpp.
|
inline |
Constructor.
| g | Grid information |
| start | starting point |
| stop | stop point |
| bc | boundary conditions |
Definition at line 104 of file grid_key_dx_iterator_sub_bc.hpp.
|
inlineprivate |
Check if the position is valid with the actual boundary conditions.
| key | key to check |
Definition at line 35 of file grid_key_dx_iterator_sub_bc.hpp.
|
inline |
Return the actual grid key iterator.
Definition at line 248 of file grid_key_dx_iterator_sub_bc.hpp.
|
inline |
Initialize the iterator.
| g | Grid information |
| start | starting point |
| stop | stop point |
| bc | boundary conditions |
Definition at line 121 of file grid_key_dx_iterator_sub_bc.hpp.
|
inline |
Check if there is the next element.
Check if there is the next element
Definition at line 238 of file grid_key_dx_iterator_sub_bc.hpp.
|
inline |
Get the next element.
Get the next element
Definition at line 213 of file grid_key_dx_iterator_sub_bc.hpp.