OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
vector_dist_expression< prp, double > Class Template Reference

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

Detailed Description

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

Main class that encapsulate a double constant.

Parameters
prpno meaning

Definition at line 576 of file vector_dist_operators.hpp.

#include <vector_dist_operators.hpp>

Public Member Functions

 vector_dist_expression (const double &d)
 constructor from a constant expression
 
void init () const
 This function must be called before value. More...
 
double value (const vect_dist_key_dx &k) const
 Evaluate the expression. More...
 

Private Attributes

double d
 constant parameter
 

Member Function Documentation

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

This function must be called before value.

it initialize the expression if needed

Definition at line 593 of file vector_dist_operators.hpp.

template<unsigned int prp>
double vector_dist_expression< prp, double >::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

Definition at line 605 of file vector_dist_operators.hpp.


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