|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
#include <matheval.hpp>

Public Types | |
| using | result_type = typename expr_ast< real_t >::tree_t |
| Necessary typedef for visitor. | |
Public Member Functions | |
| result_type | operator() (nil) const |
| Empty nodes in the tree evaluate to 0. | |
| result_type | operator() (real_t n) const |
| Numbers evaluate to themselves. | |
| result_type | operator() (std::string const &c) const |
| Variables do not evaluate. | |
| result_type | operator() (expr_ast< real_t > const &ast) const |
| Recursively evaluate the AST. | |
| result_type | operator() (binary_op< real_t > const &tree) const |
| Evaluate a binary operator and optionally recurse its operands. | |
| result_type | operator() (unary_op< real_t > const &tree) const |
| Evaluate a unary operator and optionally recurse its operand. | |
| result_type | operator() (recursive_wrapper< expr_ast< real_t > > const &w) const |
| Handle recursive_wrapper for expr_ast. | |
| result_type | operator() (recursive_wrapper< binary_op< real_t > > const &w) const |
| Handle recursive_wrapper for binary_op. | |
| result_type | operator() (recursive_wrapper< unary_op< real_t > > const &w) const |
| Handle recursive_wrapper for unary_op. | |
Definition at line 349 of file matheval.hpp.
| using matheval::detail::ConstantFolder< real_t >::result_type = typename expr_ast<real_t>::tree_t |
Necessary typedef for visitor.
Definition at line 351 of file matheval.hpp.
|
inline |
Evaluate a binary operator and optionally recurse its operands.
Definition at line 368 of file matheval.hpp.
References matheval::detail::binary_op< real_t >::lhs, matheval::detail::binary_op< real_t >::op, and matheval::detail::binary_op< real_t >::rhs.
|
inline |
Recursively evaluate the AST.
Definition at line 363 of file matheval.hpp.
References matheval::detail::expr_ast< real_t >::tree.
|
inline |
Empty nodes in the tree evaluate to 0.
Definition at line 354 of file matheval.hpp.
|
inline |
Numbers evaluate to themselves.
Definition at line 357 of file matheval.hpp.
|
inline |
Handle recursive_wrapper for binary_op.
Definition at line 396 of file matheval.hpp.
|
inline |
Handle recursive_wrapper for expr_ast.
Definition at line 391 of file matheval.hpp.
|
inline |
Handle recursive_wrapper for unary_op.
Definition at line 401 of file matheval.hpp.
|
inline |
Variables do not evaluate.
Definition at line 360 of file matheval.hpp.
|
inline |
Evaluate a unary operator and optionally recurse its operand.
Definition at line 381 of file matheval.hpp.
References matheval::detail::unary_op< real_t >::op, and matheval::detail::unary_op< real_t >::rhs.