|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
Store a unary operator and its argument tree. More...
#include <matheval.hpp>
Public Types | |
| using | op_t = std::function< real_t(real_t)> |
| Signature of a unary operator: op(x) | |
Public Member Functions | |
| unary_op (op_t op, expr_ast< real_t > rhs) | |
| Save the operator and the argument tree. | |
| unary_op (const unary_op &other) | |
| unary_op (unary_op &&) noexcept=default | |
| unary_op & | operator= (const unary_op &other) |
| unary_op & | operator= (unary_op &&) noexcept=default |
Public Attributes | |
| op_t | op |
| Stored operator. | |
| std::unique_ptr< expr_ast< real_t > > | rhs |
| Stored argument tree. | |
Store a unary operator and its argument tree.
Definition at line 174 of file matheval.hpp.
| using matheval::detail::unary_op< real_t >::op_t = std::function<real_t(real_t)> |
Signature of a unary operator: op(x)
Definition at line 177 of file matheval.hpp.
|
inline |
Save the operator and the argument tree.
Definition at line 180 of file matheval.hpp.
|
inline |
Definition at line 185 of file matheval.hpp.
|
defaultnoexcept |
|
inline |
Definition at line 192 of file matheval.hpp.
References matheval::detail::unary_op< real_t >::op, and matheval::detail::unary_op< real_t >::rhs.
|
defaultnoexcept |
| op_t matheval::detail::unary_op< real_t >::op |
Stored operator.
Definition at line 203 of file matheval.hpp.
Referenced by matheval::detail::eval_ast< real_t >::operator()(), matheval::detail::ConstantFolder< real_t >::operator()(), matheval::detail::binary_op< real_t >::operator=(), and matheval::detail::unary_op< real_t >::operator=().
| std::unique_ptr<expr_ast<real_t> > matheval::detail::unary_op< real_t >::rhs |
Stored argument tree.
Definition at line 206 of file matheval.hpp.
Referenced by matheval::detail::eval_ast< real_t >::operator()(), matheval::detail::ConstantFolder< real_t >::operator()(), matheval::detail::expr_ast< real_t >::operator*=(), matheval::detail::expr_ast< real_t >::operator+=(), matheval::detail::expr_ast< real_t >::operator-=(), matheval::detail::expr_ast< real_t >::operator/=(), matheval::detail::binary_op< real_t >::operator=(), and matheval::detail::unary_op< real_t >::operator=().