OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
FD::grid_dist_expression_op< exp1, exp2, sub > Class Template Reference

Detailed Description

template<typename exp1, typename exp2>
class FD::grid_dist_expression_op< exp1, exp2, sub >

Definition at line 1192 of file FD_expressions.hpp.

Public Types

typedef exp1::gtype gtype
 

Public Member Functions

 grid_dist_expression_op (const exp1 &o1, const exp2 &o2)
 Costruct a FD expression out of two expressions.
 
void init () const
 This function must be called before value.
 
auto value (grid_dist_key_dx< gtype::dims > &key, comb< gtype::dims > &c_where) const -> typename std::remove_reference< decltype(o1.value(key, c_where))>::type
 Evaluate the expression.
 
gtype & getGrid ()
 Return the grid on which is acting.
 
const gtype & getGrid () const
 Return the grid on which is acting.
 
template<typename Sys_eqs , typename gmap_type , typename unordered_map_type >
void value_nz (const gmap_type &g_map, grid_dist_key_dx< Sys_eqs::dims > &key, const grid_sm< Sys_eqs::dims, void > &gs, typename Sys_eqs::stype(&spacing)[Sys_eqs::dims], unordered_map_type &cols, typename Sys_eqs::stype coeff, unsigned int comp, comb< Sys_eqs::dims > &c_where) const
 

Private Attributes

const exp1 o1
 expression 1
 
const exp2 o2
 expression 1
 

Member Typedef Documentation

◆ gtype

template<typename exp1 , typename exp2 >
typedef exp1::gtype FD::grid_dist_expression_op< exp1, exp2, sub >::gtype

Definition at line 1202 of file FD_expressions.hpp.

Constructor & Destructor Documentation

◆ grid_dist_expression_op()

template<typename exp1 , typename exp2 >
FD::grid_dist_expression_op< exp1, exp2, sub >::grid_dist_expression_op ( const exp1 &  o1,
const exp2 &  o2 
)
inline

Costruct a FD expression out of two expressions.

Definition at line 1205 of file FD_expressions.hpp.

Member Function Documentation

◆ getGrid() [1/2]

template<typename exp1 , typename exp2 >
gtype & FD::grid_dist_expression_op< exp1, exp2, sub >::getGrid ( )
inline

Return the grid on which is acting.

It return the grid used in getVExpr, to get this object

Returns
the grid

Definition at line 1241 of file FD_expressions.hpp.

◆ getGrid() [2/2]

template<typename exp1 , typename exp2 >
const gtype & FD::grid_dist_expression_op< exp1, exp2, sub >::getGrid ( ) const
inline

Return the grid on which is acting.

It return the grid used in getVExpr, to get this object

Returns
the grid

Definition at line 1253 of file FD_expressions.hpp.

◆ init()

template<typename exp1 , typename exp2 >
void FD::grid_dist_expression_op< exp1, exp2, sub >::init ( ) const
inline

This function must be called before value.

it initialize the expression if needed

Definition at line 1214 of file FD_expressions.hpp.

◆ value()

template<typename exp1 , typename exp2 >
auto FD::grid_dist_expression_op< exp1, exp2, sub >::value ( grid_dist_key_dx< gtype::dims > &  key,
comb< gtype::dims > &  c_where 
) const -> typename std::remove_reference<decltype(o1.value(key,c_where))>::type
inline

Evaluate the expression.

Parameters
keywhere to evaluate the expression
Returns
the result of the expression

Definition at line 1227 of file FD_expressions.hpp.

◆ value_nz()

template<typename exp1 , typename exp2 >
template<typename Sys_eqs , typename gmap_type , typename unordered_map_type >
void FD::grid_dist_expression_op< exp1, exp2, sub >::value_nz ( const gmap_type &  g_map,
grid_dist_key_dx< Sys_eqs::dims > &  key,
const grid_sm< Sys_eqs::dims, void > &  gs,
typename Sys_eqs::stype(&)  spacing[Sys_eqs::dims],
unordered_map_type &  cols,
typename Sys_eqs::stype  coeff,
unsigned int  comp,
comb< Sys_eqs::dims > &  c_where 
) const
inline

Definition at line 1259 of file FD_expressions.hpp.

Field Documentation

◆ o1

template<typename exp1 , typename exp2 >
const exp1 FD::grid_dist_expression_op< exp1, exp2, sub >::o1
private

expression 1

Definition at line 1195 of file FD_expressions.hpp.

◆ o2

template<typename exp1 , typename exp2 >
const exp2 FD::grid_dist_expression_op< exp1, exp2, sub >::o2
private

expression 1

Definition at line 1198 of file FD_expressions.hpp.


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