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

Store a binary operator and its argument trees. More...

#include <matheval.hpp>

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

Public Types

using op_t = std::function<real_t(real_t,real_t)>
 Signature of a binary operator: op(x,y).

Public Member Functions

 binary_op (op_t op, expr_ast< real_t > lhs, expr_ast< real_t > rhs)
 Save the operator and the argument trees.

Public Attributes

op_t op
 Stored operator.
expr_ast< real_t > lhs
 Stored argument tree of first argument.
expr_ast< real_t > rhs
 Stored argument tree of second argument.

Detailed Description

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

Store a binary operator and its argument trees.

Definition at line 159 of file matheval.hpp.

Member Typedef Documentation

◆ op_t

template<typename real_t>
using matheval::detail::binary_op< real_t >::op_t = std::function<real_t(real_t,real_t)>

Signature of a binary operator: op(x,y).

Definition at line 162 of file matheval.hpp.

Constructor & Destructor Documentation

◆ binary_op()

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

Save the operator and the argument trees.

Definition at line 165 of file matheval.hpp.

References lhs, op, and rhs.

Member Data Documentation

◆ lhs

template<typename real_t>
expr_ast<real_t> matheval::detail::binary_op< real_t >::lhs

Stored argument tree of first argument.

Definition at line 172 of file matheval.hpp.

Referenced by binary_op(), matheval::detail::ConstantFolder< real_t >::operator()(), and matheval::detail::eval_ast< real_t >::operator()().

◆ op

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

◆ rhs

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

Stored argument tree of second argument.

Definition at line 174 of file matheval.hpp.

Referenced by binary_op(), matheval::detail::ConstantFolder< real_t >::operator()(), and matheval::detail::eval_ast< real_t >::operator()().


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