Main class that encapsulate a grid properties operand to be used for expressions construction. More...
Main class that encapsulate a grid properties operand to be used for expressions construction.
prp | property involved |
grid | involved |
Definition at line 517 of file FD_expressions.hpp.
#include <FD_expressions.hpp>
Public Types | |
typedef grid | gtype |
The type of the internal grid. | |
Public Member Functions | |
void | setVarId (int var_id) |
grid_dist_expression (grid &g) | |
constructor for an external grid | |
grid & | getGrid () |
Return the grid on which is acting. | |
const grid & | getGrid () const |
Return the grid on which is acting. | |
void | init () const |
This function must be called before value. | |
auto | value (const grid_dist_key_dx< grid::dims > &k, comb< grid::dims > &c_where) const -> decltype(grid_dist_expression_value_impl< type_proc >::template value_n< prp >(g, k)) |
Evaluate the expression. | |
template<unsigned int nc> | |
auto | value (const grid_dist_key_dx< grid::dims > &k, comb< grid::dims > &c_where, const int(&comp)[nc]) const -> decltype(grid_dist_expression_value_impl< type_proc >::template value_n< prp >(g, k, comp)) |
Evaluate the expression. | |
auto | value_ref (const grid_dist_key_dx< grid::dims > &k, comb< grid::dims > &c_where) const -> decltype(grid_dist_expression_value_impl< type_proc >::template value_ref< prp >(g, k)) |
Evaluate the expression. | |
template<unsigned int nc> | |
auto | value_ref (const grid_dist_key_dx< grid::dims > &k, comb< grid::dims > &c_where, const int(&comp)[nc]) const -> decltype(grid_dist_expression_value_impl< type_proc >::template value_ref< prp >(g, k, comp)) |
Evaluate the expression. | |
template<unsigned int prp2, typename grid_type > | |
grid & | operator= (const grid_dist_expression< prp2, grid_type, NORM_EXPRESSION > &g_exp) |
Fill the grid property with the evaluated expression. | |
template<typename exp1 , typename exp2 , typename op > | |
grid & | operator= (const grid_dist_expression_op< exp1, exp2, op > &g_exp) |
Fill the grid property with the evaluated expression. | |
grid & | operator= (double d) |
Fill the grid property with the double. | |
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 |
grid_dist_expression_op< grid_dist_expression< prp, grid, NORM_EXPRESSION >, boost::mpl::int_< 1 >, g_comp > | operator[] (int comp) |
gtype::stype | get (grid_dist_key_dx< gtype::dims > &key) |
int | isConstant () |
Data Fields | |
int | var_id = 0 |
Static Public Attributes | |
static const unsigned int | prop = prp |
Property id of the point. | |
Private Types | |
typedef boost::mpl::at< typenamegrid::value_type::type, boost::mpl::int_< prp > >::type | type_proc |
Private Attributes | |
grid & | g |
The grid. | |
typedef grid FD::grid_dist_expression< prp, grid, NORM_EXPRESSION >::gtype |
The type of the internal grid.
Definition at line 527 of file FD_expressions.hpp.
|
private |
Definition at line 522 of file FD_expressions.hpp.
|
inline |
constructor for an external grid
Definition at line 540 of file FD_expressions.hpp.
|
inline |
Definition at line 734 of file FD_expressions.hpp.
|
inline |
Return the grid on which is acting.
It return the grid used in getVExpr, to get this object
Definition at line 551 of file FD_expressions.hpp.
|
inline |
Return the grid on which is acting.
It return the grid used in getVExpr, to get this object
Definition at line 563 of file FD_expressions.hpp.
|
inline |
This function must be called before value.
it initialize the expression if needed
Definition at line 573 of file FD_expressions.hpp.
|
inline |
Definition at line 741 of file FD_expressions.hpp.
|
inline |
Fill the grid property with the evaluated expression.
v_exp | expression to evaluate |
Definition at line 633 of file FD_expressions.hpp.
|
inline |
Fill the grid property with the evaluated expression.
v_exp | expression to evaluate |
Definition at line 661 of file FD_expressions.hpp.
|
inline |
Fill the grid property with the double.
d | value to fill |
Definition at line 689 of file FD_expressions.hpp.
|
inline |
Definition at line 722 of file FD_expressions.hpp.
|
inline |
Definition at line 534 of file FD_expressions.hpp.
|
inline |
Evaluate the expression.
k | where to evaluate the expression |
Definition at line 583 of file FD_expressions.hpp.
|
inline |
Evaluate the expression.
k | where to evaluate the expression |
Definition at line 596 of file FD_expressions.hpp.
|
inline |
Definition at line 710 of file FD_expressions.hpp.
|
inline |
Evaluate the expression.
k | where to evaluate the expression |
Definition at line 608 of file FD_expressions.hpp.
|
inline |
Evaluate the expression.
k | where to evaluate the expression |
Definition at line 621 of file FD_expressions.hpp.
|
private |
The grid.
Definition at line 520 of file FD_expressions.hpp.
|
static |
Property id of the point.
Definition at line 530 of file FD_expressions.hpp.
int FD::grid_dist_expression< prp, grid, NORM_EXPRESSION >::var_id = 0 |
Definition at line 532 of file FD_expressions.hpp.