template<unsigned int dim, typename stencil, typename linearizer, typename warn>
class grid_key_dx_iterator_sub< dim, stencil, linearizer, warn >
Declaration grid_key_dx_iterator_sub.
Grid key class iterator, iterate through a sub-grid defined by an hyper-cube
- Parameters
-
dim | dimensionality of the grid |
- Note
- if you have a grid you can get this object from getIteratorSub()
Sub grid iterator declaration and usage
Definition at line 162 of file grid_key_dx_iterator_sub.hpp.
|
| grid_key_dx_iterator_sub () |
| Default constructor.
|
|
| grid_key_dx_iterator_sub (const grid_key_dx_iterator_sub< dim, stencil, linearizer > &g_s_it) |
| Constructor from another grid_key_dx_iterator_sub.
|
|
| grid_key_dx_iterator_sub (const linearizer &g, const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop) |
| Constructor require a grid grid<dim,T>
|
|
| grid_key_dx_iterator_sub (const linearizer &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>
|
|
| grid_key_dx_iterator_sub (const grid_key_dx< dim >(&stencil_pnt)[stencil::nsp]) |
| Constructor.
|
|
| grid_key_dx_iterator_sub (const linearizer &g, const size_t m) |
| Constructor require a grid grid<dim,T>
|
|
| grid_key_dx_iterator_sub (const linearizer &g, const size_t(&start)[dim], const size_t(&stop)[dim]) |
| Constructor require a grid grid<dim,T>
|
|
grid_key_dx_iterator_sub< dim, stencil, linearizer, warn > & | operator++ () |
| Get the next element.
|
|
grid_key_dx_iterator_sub< dim, stencil, warn > & | operator+= (int nsteps) |
| increment the operator by more than one
|
|
bool | isNext () |
| Check if there is the next element.
|
|
grid_key_dx< dim > | get () const |
| Return the actual grid key iterator.
|
|
void | reinitialize (const grid_key_dx_iterator_sub< dim > &g_s_it) |
| Reinitialize the iterator.
|
|
size_t | getVolume () |
| Get the volume spanned by this sub-grid iterator.
|
|
void | reset () |
| Reset the iterator (it restart from the beginning)
|
|
const linearizer & | getGridInfo () const |
| Return the grid information related to this grid.
|
|
const grid_key_dx< dim > & | getStart () const |
| Starting point.
|
|
const grid_key_dx< dim > & | getStop () const |
| Stop point.
|
|
template<unsigned int tot_add> |
void | private_sum () |
| Sum a template constant.
|
|
void | private_adjust (size_t tot_add) |
| Sum a template constant.
|
|
void | invalidate () |
|
| grid_key_dx_iterator () |
| Default constructor.
|
|
| grid_key_dx_iterator (const grid_key_dx_iterator< dim > &g_it) |
| Constructor from a grid_key_dx_iterator<dim>
|
|
| grid_key_dx_iterator (const grid_lin &g, const grid_key_dx< dim >(&stencil_pnt)[stencil::nsp]) |
| Constructor require a grid_sm<dim,T>
|
|
| grid_key_dx_iterator (const grid_key_dx< dim >(&stencil_pnt)[stencil::nsp]) |
| Constructor.
|
|
| grid_key_dx_iterator (const linearizer &g) |
| Constructor require a grid_sm<dim,T>
|
|
grid_key_dx_iterator< dim > | operator= (const grid_key_dx_iterator< dim > &key_it) |
| Constructor from another grid_key_dx_iterator.
|
|
grid_key_dx_iterator< dim, stencil, linearizer > & | operator++ () |
| Get the next element.
|
|
void | set (int d, size_t sz) |
| Set the dimension.
|
|
size_t | getStencil () const |
| Get the actual position.
|
|
bool | isNext () |
| Check if there is the next element.
|
|
const grid_key_dx< dim > & | get () const |
| Get the actual key.
|
|
void | reinitialize (const grid_key_dx_iterator< dim > &key) |
| Reinitialize the grid_key_dx_iterator.
|
|
const linearizer & | getGridInfo () const |
| Get the information about the grid.
|
|
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.
|
|
grid_key_dx< dim > | getStart () |
| Return the starting point of the iteration.
|
|
grid_key_dx< dim > | getStop () |
| Return the stop point of the iteration.
|
|
size_t | getVolume () |
| Get the volume spanned by this sub-grid iterator.
|
|
template<unsigned int dim, typename stencil , typename linearizer , typename warn >
Constructor require a grid grid<dim,T>
It construct an iterator over an hyper-cube defined by start and stop,
- Warning
- if start and stop are outside the domain defined by g the intersection will be considered
- Template Parameters
-
T | type of object that the grid store |
- Parameters
-
g | Grid on which iterate |
start | starting point |
stop | end point |
Definition at line 322 of file grid_key_dx_iterator_sub.hpp.
template<unsigned int dim, typename stencil , typename linearizer , typename warn >
Constructor require a grid grid<dim,T>
It construct an iterator over an hyper-cube defined by start and stop,
- Warning
- if start and stop are outside the domain defined by g the intersection will be considered
- Template Parameters
-
T | type of object that the grid store |
- Parameters
-
g | Grid on which iterate |
start | starting point |
stop | end point |
stencil_pnt | stencil points |
Definition at line 358 of file grid_key_dx_iterator_sub.hpp.
template<unsigned int dim, typename stencil , typename linearizer , typename warn >
Constructor require a grid grid<dim,T>
It construct an iterator over an hyper-cube defined by start and stop,
- Warning
- if start and stop are outside the domain defined by g the intersection will be considered
- Template Parameters
-
T | type of object that the grid store |
- Parameters
-
g | info of the grid where we are iterating |
m | Margin of the domain |
Definition at line 407 of file grid_key_dx_iterator_sub.hpp.
template<unsigned int dim, typename stencil , typename linearizer , typename warn >
Constructor require a grid grid<dim,T>
It construct an iterator over an hyper-cube defined by start and stop,
- Parameters
-
g | Grid on which iterate |
start | starting point |
stop | end point |
Definition at line 431 of file grid_key_dx_iterator_sub.hpp.
template<unsigned int dim, typename stencil , typename linearizer , typename warn >
Check if there is the next element.
Check if there is the next element
- Returns
- true if there is the next, false otherwise
we did not reach the end of the grid
we reach the end of the grid
Definition at line 507 of file grid_key_dx_iterator_sub.hpp.
template<unsigned int dim, typename stencil , typename linearizer , typename warn >
After incremented we have to check we did not overflo any dimension and in case adjust the dimensions.
check the overflow of all the index with exception of the last dimensionality
Definition at line 243 of file grid_key_dx_iterator_sub.hpp.