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

Grid key for a distributed grid. More...

Detailed Description

Grid key for a distributed grid.

Grid key for a distributed grid

Definition at line 19 of file vector_dist_key.hpp.

#include <vector_dist_key.hpp>

Public Member Functions

__device__ __host__ void setKey (size_t key)
 set the key More...
 
__device__ __host__ size_t getKey () const
 Get the key. More...
 
std::string to_string ()
 Convert the key into a string message. More...
 
__device__ __host__ vect_dist_key_dx ()
 Default constructor.
 
__device__ __host__ vect_dist_key_dx (size_t key)
 

Private Attributes

size_t key
 Local grid iterator.
 

Member Function Documentation

◆ getKey()

__device__ __host__ size_t vect_dist_key_dx::getKey ( ) const
inline

Get the key.

Returns
the local key

Definition at line 42 of file vector_dist_key.hpp.

◆ setKey()

__device__ __host__ void vect_dist_key_dx::setKey ( size_t  key)
inline

set the key

Parameters
keythe local key

Definition at line 32 of file vector_dist_key.hpp.

◆ to_string()

std::string vect_dist_key_dx::to_string ( )
inline

Convert the key into a string message.

Returns
a string message

Definition at line 52 of file vector_dist_key.hpp.


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