OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
|
Namespaces | |
math | |
Classes | |
struct | unary_op |
Store a unary operator and its argument tree. More... | |
struct | binary_op |
Store a binary operator and its argument trees. More... | |
struct | nil |
struct | expr_ast |
Abstract Syntax Tree. More... | |
class | eval_ast |
Evaluate the Abstract Syntax Tree. More... | |
struct | holds_alternative_impl |
struct | ConstantFolder |
struct | unary_expr_ |
Unary expression functor. More... | |
struct | binary_expr_ |
Binary expression functor. More... | |
struct | expectation_handler |
Error handler for expectation errors. More... | |
struct | grammar |
Expression Grammar. More... | |
Functions | |
template<typename T , typename... Ts> | |
bool | holds_alternative (boost::variant< Ts...> const &v) |
template<typename real_t , typename Iterator > | |
detail::expr_ast< real_t > | parse (Iterator first, Iterator last) |
Parse an expression. More... | |
bool matheval::detail::holds_alternative | ( | boost::variant< Ts...> const & | v | ) |
Definition at line 276 of file matheval.hpp.
detail::expr_ast<real_t> matheval::detail::parse | ( | Iterator | first, |
Iterator | last | ||
) |
Parse an expression.
This function builds the grammar and parses the iterator into an AST.
[in] | first | iterator to the start of the input sequence |
[in] | last | iterator to the end of the input sequence |
Definition at line 555 of file matheval.hpp.