OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
grid_dist_g_dx< device_grid > Class Template Reference

Distributed linearized key. More...

Detailed Description

template<typename device_grid>
class grid_dist_g_dx< device_grid >

Distributed linearized key.

instead of having the sub-subdomain index it store directly a pointer to the grid

Definition at line 301 of file grid_dist_key.hpp.

#include <grid_dist_key.hpp>

Public Member Functions

device_gridgetSub () const
 return the sub-domain grid
 
size_t getKey () const
 Get the key.
 
size_t & getKeyRef ()
 Get the reference key.
 
bool operator== (const grid_dist_g_dx &key_t)
 
 grid_dist_g_dx (device_grid *dg, size_t key)
 Constructor.
 
 grid_dist_g_dx ()
 Constructor.
 
std::string to_string ()
 convert the key to string
 

Private Attributes

device_griddg
 grid list counter
 
size_t key
 Local grid iterator.
 

Constructor & Destructor Documentation

◆ grid_dist_g_dx() [1/2]

template<typename device_grid >
grid_dist_g_dx< device_grid >::grid_dist_g_dx ( device_grid dg,
size_t  key 
)
inline

Constructor.

Parameters
dgarray of local grid
keyactual position linearized

Definition at line 367 of file grid_dist_key.hpp.

◆ grid_dist_g_dx() [2/2]

template<typename device_grid >
grid_dist_g_dx< device_grid >::grid_dist_g_dx ( )
inline

Constructor.

Definition at line 373 of file grid_dist_key.hpp.

Member Function Documentation

◆ getKey()

template<typename device_grid >
size_t grid_dist_g_dx< device_grid >::getKey ( ) const
inline

Get the key.

Returns
the local key

Definition at line 326 of file grid_dist_key.hpp.

◆ getKeyRef()

template<typename device_grid >
size_t & grid_dist_g_dx< device_grid >::getKeyRef ( )
inline

Get the reference key.

Returns
the local key

Definition at line 337 of file grid_dist_key.hpp.

◆ getSub()

template<typename device_grid >
device_grid * grid_dist_g_dx< device_grid >::getSub ( ) const
inline

return the sub-domain grid

Definition at line 315 of file grid_dist_key.hpp.

◆ operator==()

template<typename device_grid >
bool grid_dist_g_dx< device_grid >::operator== ( const grid_dist_g_dx< device_grid > &  key_t)
inline

Definition at line 350 of file grid_dist_key.hpp.

◆ to_string()

template<typename device_grid >
std::string grid_dist_g_dx< device_grid >::to_string ( )
inline

convert the key to string

Returns
a string representing the position

Definition at line 380 of file grid_dist_key.hpp.

Field Documentation

◆ dg

template<typename device_grid >
device_grid* grid_dist_g_dx< device_grid >::dg
private

grid list counter

Definition at line 304 of file grid_dist_key.hpp.

◆ key

template<typename device_grid >
size_t grid_dist_g_dx< device_grid >::key
private

Local grid iterator.

Definition at line 307 of file grid_dist_key.hpp.


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