OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
vector_dist_expression< prp, float > Class Template Reference

Main class that encapsulate a float constant. More...

Detailed Description

template<unsigned int prp>
class vector_dist_expression< prp, float >

Main class that encapsulate a float constant.

Parameters
prpno meaning

Definition at line 1802 of file vector_dist_operators.hpp.

#include <vector_dist_operators.hpp>

Public Types

typedef std::false_type is_ker
 
typedef boost::mpl::bool_< false > is_sort
 result for is sort
 
typedef void NN_type
 

Public Member Functions

 vector_dist_expression (const float &d)
 constrictor from constant value
 
void init () const
 This function must be called before value. More...
 
float value (const vect_dist_key_dx &k) const
 Evaluate the expression. More...
 
__device__ __host__ float value (const unsigned int &k) const
 Evaluate the expression. More...
 

Private Attributes

float d
 constant value
 

Member Function Documentation

◆ init()

template<unsigned int prp>
void vector_dist_expression< prp, float >::init ( ) const
inline

This function must be called before value.

it initialize the expression if needed

Definition at line 1827 of file vector_dist_operators.hpp.

◆ value() [1/2]

template<unsigned int prp>
float vector_dist_expression< prp, float >::value ( const vect_dist_key_dx k) const
inline

Evaluate the expression.

Parameters
kignored position in the vector

It just return the value set in the constructor

Returns
the constant value set in the constructor

Definition at line 1839 of file vector_dist_operators.hpp.

◆ value() [2/2]

template<unsigned int prp>
__device__ __host__ float vector_dist_expression< prp, float >::value ( const unsigned int &  k) const
inline

Evaluate the expression.

Parameters
kignored position in the vector

It just return the value set in the constructor

Returns
the constant value set in the constructor

Definition at line 1853 of file vector_dist_operators.hpp.


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