OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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.
 
size_t getPos () const
 Return the linearized position in the chunk.
 

Private Attributes

size_t chunk
 chunk id
 
size_t lin_id
 linearized id
 

Constructor & Destructor Documentation

◆ grid_key_sparse_lin_dx()

grid_key_sparse_lin_dx::grid_key_sparse_lin_dx ( size_t  chunk,
size_t  lin_id 
)
inline

Definition at line 26 of file SparseGrid_iterator.hpp.

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.

Field Documentation

◆ chunk

size_t grid_key_sparse_lin_dx::chunk
private

chunk id

Definition at line 19 of file SparseGrid_iterator.hpp.

◆ lin_id

size_t grid_key_sparse_lin_dx::lin_id
private

linearized id

Definition at line 22 of file SparseGrid_iterator.hpp.


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