OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
SparseGridGpu_iterator< dim, SparseGridType > Class Template Reference

Detailed Description

template<unsigned int dim, typename SparseGridType>
class SparseGridGpu_iterator< dim, SparseGridType >

Definition at line 158 of file SparseGridGpu_iterator.hpp.

Public Member Functions

 SparseGridGpu_iterator (const SparseGridType &sparseGrid)
 Constructor. More...
 
bool isNext () const
 Check if there is the next element. More...
 
SparseGridGpu_iterator< dim, SparseGridType > & operator++ ()
 Get the next element. More...
 
sparse_grid_gpu_index< SparseGridType > get () const
 return the actual point More...
 
void reinitialize (const SparseGridGpu_iterator< dim, SparseGridType > &it)
 Reinitialize the iterator. More...
 
SparseGridGpu_iterator< dim, SparseGridType > & operator= (const SparseGridGpu_iterator< dim, SparseGridType > &it)
 

Private Types

typedef std::remove_reference< decltype(sparseGrid->private_get_index_array())>::type index_array_type
 array type for the indexes
 
typedef std::remove_reference< decltype(sparseGrid->private_get_data_array())>::type data_array_type
 array type for the data
 
typedef boost::mpl::at< typename data_array_type::value_type::type, boost::mpl::int_< 0 > >::type chunk_type
 
typedef boost::mpl::int_< boost::mpl::size< typename data_array_type::value_type::type >::type::value-1 > pMask
 

Private Member Functions

void SelectValid ()
 Select the first valid point chunk.
 

Private Attributes

unsigned int chunk
 actual chunk
 
unsigned int pnt
 actual point inside the chunk
 
const SparseGridType * sparseGrid
 original SparseGrid
 
const index_array_typeids
 vector of the chunk indexes
 
const data_array_typedata
 vector containing each chunks datas
 

Constructor & Destructor Documentation

◆ SparseGridGpu_iterator()

template<unsigned int dim, typename SparseGridType>
SparseGridGpu_iterator< dim, SparseGridType >::SparseGridGpu_iterator ( const SparseGridType &  sparseGrid)
inline

Constructor.

Parameters
idsvector of ids \para data vector of chunk data

Definition at line 225 of file SparseGridGpu_iterator.hpp.

Member Function Documentation

◆ get()

template<unsigned int dim, typename SparseGridType>
sparse_grid_gpu_index<SparseGridType> SparseGridGpu_iterator< dim, SparseGridType >::get ( ) const
inline

return the actual point

Returns
the index of the actual point

Definition at line 274 of file SparseGridGpu_iterator.hpp.

◆ isNext()

template<unsigned int dim, typename SparseGridType>
bool SparseGridGpu_iterator< dim, SparseGridType >::isNext ( ) const
inline

Check if there is the next element.

Check if there is the next element

Returns
true if there is the next, false otherwise

Definition at line 242 of file SparseGridGpu_iterator.hpp.

◆ operator++()

template<unsigned int dim, typename SparseGridType>
SparseGridGpu_iterator<dim,SparseGridType>& SparseGridGpu_iterator< dim, SparseGridType >::operator++ ( )
inline

Get the next element.

Get the next element

Returns
the next grid_key

Definition at line 254 of file SparseGridGpu_iterator.hpp.

◆ reinitialize()

template<unsigned int dim, typename SparseGridType>
void SparseGridGpu_iterator< dim, SparseGridType >::reinitialize ( const SparseGridGpu_iterator< dim, SparseGridType > &  it)
inline

Reinitialize the iterator.

Parameters
it_subsubiterator

Definition at line 286 of file SparseGridGpu_iterator.hpp.


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