24#ifndef TOKENIZER_H_INCLUDED
25#define TOKENIZER_H_INCLUDED
79 float variable(
const std::string name);
86 float solve(
const std::string eq);
Tool to evaluate math expressions.
Definition: Tokenizer.h:42
bool registerVariable(const std::string name, float value)
Register a variable.
Definition: Tokenizer.cpp:95
float variable(const std::string name)
Returns a variable value.
Definition: Tokenizer.cpp:130
void clearVariables()
Clear/unregister all the registered variables.
Definition: Tokenizer.cpp:108
~Tokenizer()
Destructor.
Definition: Tokenizer.cpp:89
float solve(const std::string eq)
Solve a math expression.
Definition: Tokenizer.cpp:140
bool isVariable(const std::string name)
Checks if a variable has been registered.
Definition: Tokenizer.cpp:115
virtual void defaultVariables()
Register the default variables.
Definition: Tokenizer.cpp:179
Tokenizer()
Constructor.
Definition: Tokenizer.cpp:50
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45