Definition at line 14 of file SparseGridGpu_iterator_sub.hpp.
Public Member Functions | |
SparseGridGpu_iterator_sub () | |
Default constructor. | |
SparseGridGpu_iterator_sub (const SparseGridType &sparseGrid, const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop, int is_to_init) | |
Constructor. | |
grid_key_dx< dim > | getStart () const |
Return the starting point. | |
grid_key_dx< dim > | getStop () const |
Return the stop point. | |
void | reinitialize (const SparseGridGpu_iterator_sub< dim, SparseGridType > &it_sub) |
Reinitialize the iterator. | |
bool | isNext () const |
Check if there is the next element. | |
SparseGridGpu_iterator_sub< dim, SparseGridType > & | operator++ () |
Get the next element. | |
sparse_grid_gpu_index< SparseGridType > | get () const |
return the actual point | |
SparseGridGpu_iterator_sub< dim, SparseGridType > & | operator= (const SparseGridGpu_iterator_sub< dim, SparseGridType > &it_sub) |
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< typenamedata_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 | initialize_chunk_it () |
initialize the chunk interator | |
void | SelectValid () |
Select the first valid point chunk. | |
void | initialize_chunk_sz () |
Initialize chunk_sz member. | |
Private Attributes | |
unsigned int | chunk |
actual chunk | |
const SparseGridType * | sparseGrid |
original SparseGrid | |
grid_key_dx< dim, int > | chunk_coord |
chunk coordinates | |
const std::remove_reference< decltype(sparseGrid->private_get_index_array())>::type * | ids |
vector of the chunk indexes | |
const std::remove_reference< decltype(sparseGrid->private_get_data_array())>::type * | data |
vector containing each chunks datas | |
Box< dim, int > | sub_set |
Box< dim, int > | res |
grid_key_dx_iterator_sub< dim > | in_chunk_it |
grid_sm< dim, void > | chunk_sz |
|
private |
Definition at line 38 of file SparseGridGpu_iterator_sub.hpp.
|
private |
array type for the data
Definition at line 29 of file SparseGridGpu_iterator_sub.hpp.
|
private |
array type for the indexes
Definition at line 26 of file SparseGridGpu_iterator_sub.hpp.
|
private |
Definition at line 41 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Default constructor.
Definition at line 129 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Constructor.
sparseGrid | original sparse grid |
start | starting point |
stop | stop point |
Definition at line 145 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
return the actual point
Definition at line 230 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Return the starting point.
Definition at line 172 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Return the stop point.
Definition at line 182 of file SparseGridGpu_iterator_sub.hpp.
|
inlineprivate |
initialize the chunk interator
Definition at line 59 of file SparseGridGpu_iterator_sub.hpp.
|
inlineprivate |
Initialize chunk_sz member.
Definition at line 114 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Check if there is the next element.
Check if there is the next element
Definition at line 204 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Get the next element.
Get the next element
Definition at line 216 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Definition at line 237 of file SparseGridGpu_iterator_sub.hpp.
|
inline |
Reinitialize the iterator.
it_sub | subiterator |
Definition at line 192 of file SparseGridGpu_iterator_sub.hpp.
|
inlineprivate |
Select the first valid point chunk.
Definition at line 95 of file SparseGridGpu_iterator_sub.hpp.
|
private |
actual chunk
Definition at line 17 of file SparseGridGpu_iterator_sub.hpp.
|
private |
chunk coordinates
Definition at line 23 of file SparseGridGpu_iterator_sub.hpp.
|
private |
Definition at line 53 of file SparseGridGpu_iterator_sub.hpp.
|
private |
vector containing each chunks datas
Definition at line 35 of file SparseGridGpu_iterator_sub.hpp.
|
private |
vector of the chunk indexes
Definition at line 32 of file SparseGridGpu_iterator_sub.hpp.
|
private |
Definition at line 50 of file SparseGridGpu_iterator_sub.hpp.
|
private |
Definition at line 47 of file SparseGridGpu_iterator_sub.hpp.
|
private |
original SparseGrid
Definition at line 20 of file SparseGridGpu_iterator_sub.hpp.
|
private |
Definition at line 44 of file SparseGridGpu_iterator_sub.hpp.