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

Main class that encapsulate a sum expression. More...

Detailed Description

template<int dim, typename exp1, typename exp2>
class grid_key_dx_sum< dim, exp1, exp2 >

Main class that encapsulate a sum expression.

Parameters
dimdimensionality
exp1expression 1
exp2expression 2

Definition at line 101 of file grid_key_expression.hpp.

#include <grid_key_expression.hpp>

+ Inheritance diagram for grid_key_dx_sum< dim, exp1, exp2 >:

Public Member Functions

__device__ __host__ grid_key_dx_sum (const exp1 &ex1, const exp2 &ex2)
 
__device__ __host__ mem_id value (int i) const
 
- Public Member Functions inherited from grid_key_dx_expression< dim, grid_key_dx_sum< dim, exp1, exp2 > >
__device__ __host__ mem_id value (int i) const
 
__device__ __host__ grid_key_dx_sub< dim, grid_key_dx_expression< dim, grid_key_dx_sum< dim, exp1, exp2 > >, grid_key_dx< dim, index_type > > operator- (const grid_key_dx< dim, index_type > &key) const
 
__device__ __host__ grid_key_dx_sub< dim, grid_key_dx_expression< dim, grid_key_dx_sum< dim, exp1, exp2 > >, grid_key_dx_expression< dim, T > > operator- (const grid_key_dx_expression< dim, T > &key) const
 
__device__ __host__ grid_key_dx_sum< dim, grid_key_dx_expression< dim, grid_key_dx_sum< dim, exp1, exp2 > >, grid_key_dx< dim, index_type > > operator+ (const grid_key_dx< dim, index_type > &key) const
 
__device__ __host__ grid_key_dx_sum< dim, grid_key_dx_expression< dim, grid_key_dx_sum< dim, exp1, exp2 > >, grid_key_dx_expression< dim, T > > operator+ (const grid_key_dx_expression< dim, T > &key) const
 

Private Attributes

const exp1 & e1
 
const exp2 & e2
 

Constructor & Destructor Documentation

◆ grid_key_dx_sum()

template<int dim, typename exp1 , typename exp2 >
__device__ __host__ grid_key_dx_sum< dim, exp1, exp2 >::grid_key_dx_sum ( const exp1 &  ex1,
const exp2 &  ex2 
)
inline

Definition at line 108 of file grid_key_expression.hpp.

Member Function Documentation

◆ value()

template<int dim, typename exp1 , typename exp2 >
__device__ __host__ mem_id grid_key_dx_sum< dim, exp1, exp2 >::value ( int  i) const
inline

Definition at line 112 of file grid_key_expression.hpp.

Field Documentation

◆ e1

template<int dim, typename exp1 , typename exp2 >
const exp1& grid_key_dx_sum< dim, exp1, exp2 >::e1
private

Definition at line 103 of file grid_key_expression.hpp.

◆ e2

template<int dim, typename exp1 , typename exp2 >
const exp2& grid_key_dx_sum< dim, exp1, exp2 >::e2
private

Definition at line 104 of file grid_key_expression.hpp.


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