OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
matheval::detail::unary_op< real_t > Struct Template Reference

Store a unary operator and its argument tree. More...

#include <matheval.hpp>

Collaboration diagram for matheval::detail::unary_op< real_t >:

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.

Public Attributes

op_t op
 Stored operator.
expr_ast< real_t > rhs
 Stored argument tree.

Detailed Description

template<typename real_t>
struct matheval::detail::unary_op< real_t >

Store a unary operator and its argument tree.

Definition at line 141 of file matheval.hpp.

Member Typedef Documentation

◆ op_t

template<typename real_t>
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 144 of file matheval.hpp.

Constructor & Destructor Documentation

◆ unary_op()

template<typename real_t>
matheval::detail::unary_op< real_t >::unary_op ( op_t op,
expr_ast< real_t > rhs )
inline

Save the operator and the argument tree.

Definition at line 147 of file matheval.hpp.

References op, and rhs.

Member Data Documentation

◆ op

template<typename real_t>
op_t matheval::detail::unary_op< real_t >::op

◆ rhs

template<typename real_t>
expr_ast<real_t> matheval::detail::unary_op< real_t >::rhs

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