#include <MathExpressionGrammar.h>
Classes | |
struct | definition |
Boost spirit definition template (Read Boost Spirit documentation) More... | |
struct | SAssignmentClosure |
Assignment closure set. More... | |
struct | SStringClosure |
String closure set. More... | |
struct | SValueClosure |
Value closure set. More... | |
Public Member Functions | |
int | GetNVariables () const |
double | GetVariable (const std::string &name) const |
SymbolTable & | GetVariables () |
const SymbolTable & | GetVariables () const |
bool | HasVariable (const std::string &name) const |
MathExpressionGrammar (double &result, const utl::SymbolTable &sym) | |
MathExpressionGrammar (double &result, const utl::SymbolTable &sym, utl::SymbolTable &vars) | |
void | SetResult (double &v) const |
void | SetVariable (const std::string &name, const double &v) |
Protected Member Functions | |
ERROR (err) | |
void | SaveResult (const double val) const |
throw | XMLParseException (err) |
Protected Attributes | |
double | const |
Function which searches in the symbol table. More... | |
const std::string | err |
const auto | it1 = symbols.find(symbol) |
return | |
return it1 | second |
return it2 | second |
Private Attributes | |
double * | fResult = nullptr |
const SymbolTable * | fSymbols |
SymbolTable | fVariables |
Definition at line 68 of file MathExpressionGrammar.h.
|
inline |
Definition at line 70 of file MathExpressionGrammar.h.
|
inline |
Definition at line 73 of file MathExpressionGrammar.h.
|
protected |
|
inline |
Definition at line 223 of file MathExpressionGrammar.h.
|
inline |
Definition at line 227 of file MathExpressionGrammar.h.
|
inline |
Definition at line 221 of file MathExpressionGrammar.h.
|
inline |
Definition at line 222 of file MathExpressionGrammar.h.
|
inline |
Definition at line 225 of file MathExpressionGrammar.h.
|
inlineprotected |
Definition at line 193 of file MathExpressionGrammar.h.
References fResult.
Referenced by utl::MathExpressionGrammar::definition< ScannerT >::definition().
|
inline |
Definition at line 76 of file MathExpressionGrammar.h.
References fResult.
Definition at line 226 of file MathExpressionGrammar.h.
|
protected |
|
protected |
Function which searches in the symbol table.
Definition at line 199 of file MathExpressionGrammar.h.
|
protected |
Definition at line 212 of file MathExpressionGrammar.h.
|
mutableprivate |
Definition at line 232 of file MathExpressionGrammar.h.
Referenced by SaveResult(), and SetResult().
|
private |
Definition at line 230 of file MathExpressionGrammar.h.
|
private |
Definition at line 231 of file MathExpressionGrammar.h.
|
protected |
Definition at line 201 of file MathExpressionGrammar.h.
|
protected |
Definition at line 217 of file MathExpressionGrammar.h.
Definition at line 203 of file MathExpressionGrammar.h.
|
protected |
Definition at line 206 of file MathExpressionGrammar.h.