Parser Namespace Reference


Classes

struct  Parser::lazy_pow_
struct  Parser::lazy_pow_::result< X, Y >
struct  Parser::lazy_mod_
struct  Parser::lazy_mod_::result< X, Y >
struct  Parser::lazy_if_
struct  Parser::lazy_if_::result< X, Y, Z >
struct  Parser::lazy_ufunc_
struct  Parser::lazy_ufunc_::result< F, A1 >
struct  Parser::grammar
struct  Parser::grammar::constant_
struct  Parser::grammar::ufunc_

Typedefs

typedef std::map< const char *,
double > 
ConstantMap

Functions

double deg (const double d)
double rad (const double d)
bool parse (std::string::const_iterator &iter, std::string::const_iterator end, const grammar &g, double &result)
bool ParseExpression (const std::string expression, double &result)
bool ParseExpression (const std::string expression, double &result, const ConstantMap constants)


Typedef Documentation

typedef std::map<const char*, double> Parser::ConstantMap
 

Definition at line 34 of file ParseExp.h.

Referenced by ParseExpression().


Function Documentation

double deg const double  d  ) 
 

Definition at line 103 of file ParseExp.cpp.

bool parse std::string::const_iterator &  iter,
std::string::const_iterator  end,
const grammar &  g,
double &  result
 

Definition at line 233 of file ParseExp.cpp.

Referenced by HuginBase::PTScriptParsing::ImgInfo::ImgInfo(), and ParseExpression().

bool Parser::ParseExpression const std::string  expression,
double &  result,
const ConstantMap  constants
 

Definition at line 255 of file ParseExp.cpp.

References parse().

Referenced by ParseExpression().

bool Parser::ParseExpression const std::string  expression,
double &  result
 

Definition at line 248 of file ParseExp.cpp.

References ConstantMap, and ParseExpression().

Referenced by UpdateSingleVar().

double rad const double  d  ) 
 

Definition at line 109 of file ParseExp.cpp.


Generated on Wed Aug 20 01:25:51 2014 for Hugintrunk by  doxygen 1.3.9.1