OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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
 
__device__ __host__ size_t getKey () const
 Get the key.
 
std::string to_string ()
 Convert the key into a string message.
 
__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.
 

Constructor & Destructor Documentation

◆ vect_dist_key_dx() [1/2]

__device__ __host__ vect_dist_key_dx::vect_dist_key_dx ( )
inline

Default constructor.

Definition at line 62 of file vector_dist_key.hpp.

◆ vect_dist_key_dx() [2/2]

__device__ __host__ vect_dist_key_dx::vect_dist_key_dx ( size_t  key)
inline

Definition at line 67 of file vector_dist_key.hpp.

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.

Field Documentation

◆ key

size_t vect_dist_key_dx::key
private

Local grid iterator.

Definition at line 23 of file vector_dist_key.hpp.


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