|
| void | Parser::ShuntingYard::ClearQueue (std::queue< RPNTokens::TokenBase * > &input) |
| | clear the queue
|
| |
| std::string | Parser::ShuntingYard::RemoveWhiteSpaces (const std::string &text) |
| | remove all whitespaces and convert to lowercase
|
| |
| void | Parser::ShuntingYard::InitParser () |
| | initialize some internal variables
|
| |
| void | Parser::ShuntingYard::CleanUpParser () |
| | clean up some internal static variables
|
| |
| std::string | Parser::ShuntingYard::FindOperator (const std::string &searchString) |
| | compare the first characters in string with supportedBinaryOperations, return longest match
|
| |
| bool | Parser::ShuntingYard::ConvertToRPN (const std::string &expression, const ConstantMap &constants, std::queue< RPNTokens::TokenBase * > &rpn) |
| | convert expression to RPN *
|
| |
| bool | Parser::ShuntingYard::EvaluateRPN (std::queue< RPNTokens::TokenBase * > &input, double &result) |
| | evaluate RPN in input
|
| |
| bool | Parser::ParseExpression (const std::string &expression, double &result, const ConstantMap &constants, std::string &error) |
| | parse complete expression in 2 steps
|
| |
| bool | Parser::ParseVarNumber (const std::string &s, Parser::ParseVar &var) |
| | parse string s and store result in ParseVar var
|
| |
| void | Parser::ParseSingleVar (ParseVarVec &varVec, const std::string &s, std::ostream &errorStream) |
| |
| void | Parser::ParseVariableString (ParseVarVec &parseVec, const std::string &input, std::ostream &errorStream, void(*func)(ParseVarVec &, const std::string &, std::ostream &)) |
| | parse complete variables string
|
| |
| bool | Parser::UpdateSingleVar (HuginBase::Panorama &pano, const Parser::ParseVar &parseVar, const Parser::ConstantMap &constants, size_t imgNr, std::ostream &statusStream, std::ostream &errorStream) |
| |
| bool | Parser::CalculateConstant (HuginBase::Panorama &pano, const Parser::ParseVar &parseVar, Parser::ConstantMap &constants, std::ostream &statusStream, std::ostream &errorStream) |
| |
| void | Parser::PanoParseExpression (HuginBase::Panorama &pano, const std::string &expression, std::ostream &statusStream=std::cout, std::ostream &errorStream=std::cerr) |
| | parses the given expression and apply the changes to the Panorama
|
| |
functions to parse expressions from strings
- Author
- T. Modes
Definition in file ParseExp.cpp.