1 #ifndef GRID_KEY_EXPRESSION
2 #define GRID_KEY_EXPRESSION
4 #include "util/common.hpp"
21 template<
unsigned int dim,
typename exp>
26 mem_id value(
int i)
const
28 return static_cast<const exp &
>(*this).value(i);
68 template<
int dim,
typename exp1,
typename exp2>
80 mem_id value(
int i)
const
82 return e1.value(i) + e2.value(i);
93 template<
int dim,
typename exp1,
typename exp2>
105 mem_id value(
int i)
const
107 return e1.value(i) - e2.value(i);
Main class that encapsulate a sub expression.
grid_key_dx is the key to access any element in the grid
Expression template for grid_key_dx.
This class is a trick to indicate the compiler a specific specialization pattern. ...
Main class that encapsulate a sum expression.