| OPAL (Object Oriented Parallel Accelerator Library)
    2.2.0
    OPAL | 
Class interface. More...
#include <matheval.hpp>
| Public Member Functions | |
| template<typename Iterator > | |
| void | parse (Iterator first, Iterator last) | 
| Parse an expression.  More... | |
| void | parse (std::string const &str) | 
| void | optimize () | 
| real_t | evaluate (typename detail::eval_ast< real_t >::symbol_table_t const &st) | 
| Evaluate the AST with a given symbol table.  More... | |
| Private Attributes | |
| detail::expr_ast< real_t > | ast | 
Class interface.
This class hides the grammar, AST, and AST traversal behind some member functions.
| real_t | datatype of the result | 
Definition at line 588 of file matheval.hpp.
| 
 | inline | 
Evaluate the AST with a given symbol table.
| [in] | st | the symbol table for variables | 
Definition at line 620 of file matheval.hpp.
References matheval::Parser< real_t >::ast.
Referenced by matheval::parse().
| 
 | inline | 
Definition at line 612 of file matheval.hpp.
References matheval::Parser< real_t >::ast.
| 
 | inline | 
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 601 of file matheval.hpp.
References matheval::Parser< real_t >::ast.
Referenced by matheval::Parser< real_t >::parse(), and matheval::parse().
| 
 | inline | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 607 of file matheval.hpp.
References matheval::Parser< real_t >::parse().

| 
 | private | 
Definition at line 590 of file matheval.hpp.
Referenced by matheval::Parser< real_t >::evaluate(), matheval::Parser< real_t >::optimize(), and matheval::Parser< real_t >::parse().
 1.8.5
 1.8.5