Rosetta
Public Types | Public Member Functions | Private Attributes | List of all members
numeric::CalculatorParser Class Reference
Inheritance diagram for numeric::CalculatorParser:
Inheritance graph
[legend]

Public Types

typedef qi::rule< std::string::iterator, double(), ascii::space_type > Rule
 
typedef qi::rule< std::string::iterator, std::string(), ascii::space_type > RuleS
 
typedef qi::rule< std::string::iterator, void(), ascii::space_type > RuleX
 
typedef std::map< std::string, numeric::RealVarmap
 

Public Member Functions

 CalculatorParser (Varmap const &variables)
 
void add_symbol (std::string name, double value)
 
Rule parser ()
 

Private Attributes

RuleS varname
 
RuleX assignment
 
Rule expression
 
Rule term
 
Rule exponent
 
Rule factor
 
Rule function
 
Rule parser_
 
qi::symbols< char, doublelocal_vars_
 

Member Typedef Documentation

◆ Rule

typedef qi::rule<std::string::iterator, double(), ascii::space_type> numeric::CalculatorParser::Rule

◆ RuleS

typedef qi::rule<std::string::iterator, std::string(), ascii::space_type> numeric::CalculatorParser::RuleS

◆ RuleX

typedef qi::rule<std::string::iterator, void(), ascii::space_type> numeric::CalculatorParser::RuleX

◆ Varmap

typedef std::map<std::string,numeric::Real> numeric::CalculatorParser::Varmap

Constructor & Destructor Documentation

◆ CalculatorParser()

numeric::CalculatorParser::CalculatorParser ( Varmap const &  variables)
inlineexplicit

Member Function Documentation

◆ add_symbol()

void numeric::CalculatorParser::add_symbol ( std::string  name,
double  value 
)
inline

References local_vars_, and value.

Referenced by CalculatorParser().

◆ parser()

Rule numeric::CalculatorParser::parser ( )
inline

Member Data Documentation

◆ assignment

RuleX numeric::CalculatorParser::assignment
private

Referenced by CalculatorParser().

◆ exponent

Rule numeric::CalculatorParser::exponent
private

Referenced by CalculatorParser().

◆ expression

Rule numeric::CalculatorParser::expression
private

Referenced by CalculatorParser().

◆ factor

Rule numeric::CalculatorParser::factor
private

◆ function

Rule numeric::CalculatorParser::function
private

◆ local_vars_

qi::symbols<char, double> numeric::CalculatorParser::local_vars_
private

Referenced by add_symbol(), and CalculatorParser().

◆ parser_

Rule numeric::CalculatorParser::parser_
private

Referenced by CalculatorParser(), and parser().

◆ term

Rule numeric::CalculatorParser::term
private

Referenced by CalculatorParser().

◆ varname

RuleS numeric::CalculatorParser::varname
private

Referenced by CalculatorParser().


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