CAPD DynSys Library  5.2.0
Parser.h File Reference
#include <string>
#include <vector>
#include <map>
#include "capd/autodiff/NodeType.h"

Namespaces

 capd
 
 capd::map
 Functions and Maps.
 

Functions

int capd::map::parseVariables (std::string expression, std::vector< std::string > &var)
 
int capd::map::parseExpression (std::string &expression, const std::vector< std::string > &vars, std::vector< capd::autodiff::Node > &dag, std::map< std::string, int > &knownNodes)
 a general function that parses expression from a given string. It returns: More...
 
int capd::map::parseMap (unsigned numberOfVariables, std::string expression, const std::vector< std::string > &var, std::vector< capd::autodiff::Node > &dag, std::vector< int > &pos)
 
size_t capd::map::parseBrackets (const std::string &e, size_t position)
 return a position of '(' which is paired with the last ')' or 0, when there are not any parentheses More...
 
size_t capd::map::searchForOperator (const std::string &e, unsigned char op, size_t position)
 
size_t capd::map::searchForFunction (const std::string &fun, const std::string &e)
 returns position of arguments of function <fun> , or 0 if <fun> does not appear or is an argument for some other function More...
 
bool capd::map::searchForFunction (const std::string &fun, const std::string &equation, std::string &args)
 Checks if equation is of the form fun(params) More...
 
std::string & capd::map::removeBrackets (std::string &eq)
 This function removes exterior brackets. More...
 
void capd::map::splitVariables (const std::string &what, const std::string &where, std::vector< std::string > &result)
 
bool capd::map::isConstant (std::string &s, double &value)
 
bool capd::map::stringToDouble (std::string const &text, double &result)
 Converts given text to double. More...
 
void capd::map::removeWhiteSpaces (std::string &text)
 removes all white spaces from text More...
 
void capd::map::optimizeDAG (std::vector< capd::autodiff::Node > &dag, std::vector< int > &pos)
 

Detailed Description

Author
Daniel Wilczak