OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type > Class Template Reference

Detailed Description

template<unsigned int dim, typename device_grid, typename device_sub_it, typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
class grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >

Definition at line 16 of file grid_dist_amr_key_iterator.hpp.

Data Structures

struct  actual_it
 actual it type More...
 

Public Member Functions

 grid_dist_amr_key_iterator (openfpm::vector< it_type > &git)
 Constructor.
 
 ~grid_dist_amr_key_iterator ()
 Destructor.
 
grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type > & operator++ ()
 Get the next element.
 
bool isNext ()
 Is there a next point.
 
grid_dist_amr_key< dim > get ()
 Return the actual AMR grid iterator point.
 
grid_key_dx< dim > getGKey ()
 Return the actual global grid position in the AMR struct in global coordinates.
 
size_t getLvl () const
 Return the level at which we are.
 

Private Member Functions

void selectValidGrid ()
 from g_c increment g_c until you find a valid grid
 

Private Attributes

openfpm::vector< it_type > & git
 Array of grid iterators.
 
it_type * a_it
 Actual distributed grid iterator.
 
size_t g_c
 iterator pointer
 

Constructor & Destructor Documentation

◆ grid_dist_amr_key_iterator()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::grid_dist_amr_key_iterator ( openfpm::vector< it_type > &  git)
inline

Constructor.

Parameters
gitvector of iterator

Definition at line 57 of file grid_dist_amr_key_iterator.hpp.

◆ ~grid_dist_amr_key_iterator()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::~grid_dist_amr_key_iterator ( )
inline

Destructor.

Definition at line 67 of file grid_dist_amr_key_iterator.hpp.

Member Function Documentation

◆ get()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
grid_dist_amr_key< dim > grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::get ( )
inline

Return the actual AMR grid iterator point.

Definition at line 110 of file grid_dist_amr_key_iterator.hpp.

◆ getGKey()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
grid_key_dx< dim > grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::getGKey ( )
inline

Return the actual global grid position in the AMR struct in global coordinates.

Definition at line 120 of file grid_dist_amr_key_iterator.hpp.

◆ getLvl()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
size_t grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::getLvl ( ) const
inline

Return the level at which we are.

Definition at line 129 of file grid_dist_amr_key_iterator.hpp.

◆ isNext()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
bool grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::isNext ( )
inline

Is there a next point.

Returns
true is there is a next point

Definition at line 101 of file grid_dist_amr_key_iterator.hpp.

◆ operator++()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type > & grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::operator++ ( )
inline

Get the next element.

Returns
the next grid_key

Definition at line 77 of file grid_dist_amr_key_iterator.hpp.

◆ selectValidGrid()

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
void grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::selectValidGrid ( )
inlineprivate

from g_c increment g_c until you find a valid grid

Definition at line 38 of file grid_dist_amr_key_iterator.hpp.

Field Documentation

◆ a_it

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
it_type* grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::a_it
private

Actual distributed grid iterator.

Definition at line 28 of file grid_dist_amr_key_iterator.hpp.

◆ g_c

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
size_t grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::g_c
private

iterator pointer

Definition at line 31 of file grid_dist_amr_key_iterator.hpp.

◆ git

template<unsigned int dim, typename device_grid , typename device_sub_it , typename it_type = grid_dist_iterator<dim,device_grid,device_sub_it,FREE>>
openfpm::vector<it_type>& grid_dist_amr_key_iterator< dim, device_grid, device_sub_it, it_type >::git
private

Array of grid iterators.

Definition at line 19 of file grid_dist_amr_key_iterator.hpp.


The documentation for this class was generated from the following file: