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

Main class that encapsulate a constant number used in a point expression. More...

Detailed Description

template<typename T>
class point_expression< T >

Main class that encapsulate a constant number used in a point expression.

Definition at line 167 of file Point_operators.hpp.

#include <Point_operators.hpp>

Public Types

typedef int has_init
 indicate that init must be called before value
 
typedef int is_expression
 indicate that this class encapsulate an expression
 

Public Member Functions

 point_expression (T &d)
 constructor from a value More...
 
void init () const
 This function must be called before value. More...
 
value (const size_t k) const
 Evaluate the expression. More...
 

Static Public Attributes

static const unsigned int nvals = 1
 this operation produce a vector as result of size dims
 

Private Attributes

d
 constant
 

Constructor & Destructor Documentation

template<typename T >
point_expression< T >::point_expression ( T &  d)
inline

constructor from a value

Parameters
dvalue

Definition at line 188 of file Point_operators.hpp.

Member Function Documentation

template<typename T >
void point_expression< T >::init ( ) const
inline

This function must be called before value.

it calculate the scalar product before return the values

Definition at line 197 of file Point_operators.hpp.

template<typename T >
T point_expression< T >::value ( const size_t  k) const
inline

Evaluate the expression.

Parameters
kcoordinate to evaluate
Returns
It just return the velue set in the constructor

Definition at line 208 of file Point_operators.hpp.


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