OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Namespaces | Classes | Functions
matheval Namespace Reference

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)
 

Function Documentation

template<typename real_t , typename Iterator >
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.

Parameters
[in]firstiterator to the start of the input sequence
[in]lastiterator to the end of the input sequence
[in]stthe symbol table for variables

Definition at line 638 of file matheval.hpp.

References matheval::Parser< real_t >::evaluate(), and matheval::Parser< real_t >::parse().

Here is the call graph for this function:

template<typename real_t >
real_t matheval::parse ( std::string const &  str,
typename detail::eval_ast< real_t >::symbol_table_t const &  st 
)

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 648 of file matheval.hpp.