ParseExp.cpp File Reference

functions to parse expressions from strings More...

#include "ParseExp.h"
#include <limits>
#include <iterator>
#include <boost/spirit/version.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/spirit/include/phoenix.hpp>
#include <boost/spirit/include/qi.hpp>

Include dependency graph for ParseExp.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  Parser

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_

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)


Detailed Description

functions to parse expressions from strings

Author:
T. Modes

Definition in file ParseExp.cpp.


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 Parser::ParseExpression().

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

Definition at line 255 of file ParseExp.cpp.

References Parser::parse().

Referenced by Parser::ParseExpression().

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

Definition at line 248 of file ParseExp.cpp.

References Parser::ConstantMap, and Parser::ParseExpression().

Referenced by UpdateSingleVar().

double rad const double  d  ) 
 

Definition at line 109 of file ParseExp.cpp.


Generated on Thu Jul 31 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1