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

Detailed Description

template<unsigned int dim>
class grid_dist_testing< dim >

Definition at line 16 of file grid_dist_testing.hpp.

Public Member Functions

 grid_dist_testing (const size_t(&g_sz)[dim])
 It create a test map suitable for testing.
 
template<unsigned int p>
size_t get (const grid_dist_key_dx< dim > &key) const
 Get the element at position key.
 
grid_key_dx< dim > getGKey (const grid_dist_key_dx< dim > &key) const
 Return the global key.
 

Private Attributes

grid_cpu< dim, aggregate< size_t > > grid_test
 

Constructor & Destructor Documentation

◆ grid_dist_testing()

template<unsigned int dim>
grid_dist_testing< dim >::grid_dist_testing ( const size_t(&)  g_sz[dim])
inline

It create a test map suitable for testing.

Parameters
sizeof the grid with padding

Definition at line 27 of file grid_dist_testing.hpp.

Member Function Documentation

◆ get()

template<unsigned int dim>
template<unsigned int p>
size_t grid_dist_testing< dim >::get ( const grid_dist_key_dx< dim > &  key) const
inline

Get the element at position key.

Warning
it is a stub object, it just return number in the underline grid

Definition at line 52 of file grid_dist_testing.hpp.

◆ getGKey()

template<unsigned int dim>
grid_key_dx< dim > grid_dist_testing< dim >::getGKey ( const grid_dist_key_dx< dim > &  key) const
inline

Return the global key.

Warning
it is a stub object, it just return the key

Definition at line 65 of file grid_dist_testing.hpp.

Field Documentation

◆ grid_test

template<unsigned int dim>
grid_cpu<dim,aggregate<size_t> > grid_dist_testing< dim >::grid_test
private

Definition at line 18 of file grid_dist_testing.hpp.


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