OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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 257 of file grid_dist_key.hpp.

#include <grid_dist_key.hpp>

Public Member Functions

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

Private Attributes

device_grid * dg
 grid list counter
 
size_t key
 Local grid iterator.
 

Constructor & Destructor Documentation

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 323 of file grid_dist_key.hpp.

Member Function Documentation

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 282 of file grid_dist_key.hpp.

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 293 of file grid_dist_key.hpp.

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

return the sub-domain grid

Definition at line 271 of file grid_dist_key.hpp.

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 336 of file grid_dist_key.hpp.


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