|
OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
Namespaces | |
| detail | |
Classes | |
| class | Parser |
| Class interface. More... | |
Functions | |
| template<typename real_t , typename Iterator > | |
| real_t | parse (Iterator first, Iterator last, typename detail::eval_ast< real_t >::symbol_table_t const &st) |
| Convenience function. More... | |
| template<typename real_t > | |
| real_t | parse (std::string const &str, typename detail::eval_ast< real_t >::symbol_table_t const &st) |
| real_t matheval::parse | ( | Iterator | first, |
| Iterator | last, | ||
| typename detail::eval_ast< real_t >::symbol_table_t const & | st | ||
| ) |
Convenience function.
This function builds the grammar, parses the iterator to an AST, evaluates it, and returns the result.
| [in] | first | iterator to the start of the input sequence |
| [in] | last | iterator to the end of the input sequence |
| [in] | st | the symbol table for variables |
Definition at line 630 of file matheval.hpp.
References matheval::Parser< real_t >::evaluate(), and matheval::Parser< real_t >::parse().

| real_t matheval::parse | ( | std::string const & | str, |
| typename detail::eval_ast< real_t >::symbol_table_t const & | st | ||
| ) |
Definition at line 640 of file matheval.hpp.