Template Class Parser

Nested Relationships

Nested Types

Class Documentation

template<typename Derived = Eigen::MatrixXd>
class Parser

Public Types

typedef std::map<std::string, Value<Derived>> ValueMap

Public Functions

inline ValueMap &vars()
inline Value<Derived> &var(const std::string &name)
inline bool hasVar(const std::string &name)
inline void clearVar(const std::string &name)
inline bool cacheExpressions() const
inline void setCacheExpressions(bool b)
inline void clearCachedExpressions()
Parser()
inline ~Parser()
Value<Derived> eval(const std::string &expression)

Public Static Functions

static std::string trim(const std::string &str)
static std::vector<std::string> split(const std::string &str, const char delimeter)
template<typename T>
static bool isNumber(const std::string &str, T *num = 0)
template<typename T>
static T stringToNumber(const std::string &str)
template<typename T>
static std::string numberToString(T num, int precision = 0)