OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
grid_key_sparse_lin_dx Class Reference

It store the position in space of the sparse grid. More...

Detailed Description

It store the position in space of the sparse grid.

linearized index

Definition at line 16 of file SparseGrid_iterator.hpp.

#include <SparseGrid_iterator.hpp>

Public Member Functions

 grid_key_sparse_lin_dx (size_t chunk, size_t lin_id)
 
size_t getChunk () const
 Return the chunk id. More...
 
size_t getPos () const
 Return the linearized position in the chunk. More...
 

Private Attributes

size_t chunk
 chunk id
 
size_t lin_id
 linearized id
 

Member Function Documentation

◆ getChunk()

size_t grid_key_sparse_lin_dx::getChunk ( ) const
inline

Return the chunk id.

Returns
the chunk id

Definition at line 37 of file SparseGrid_iterator.hpp.

◆ getPos()

size_t grid_key_sparse_lin_dx::getPos ( ) const
inline

Return the linearized position in the chunk.

Returns
the linearized position in the chunk

Definition at line 47 of file SparseGrid_iterator.hpp.


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