Gin
Public Member Functions | List of all members
EquationParser Class Reference
Inheritance diagram for EquationParser:

Public Member Functions

 EquationParser ()
 
 EquationParser (const juce::String &equation)
 
 ~EquationParser ()
 
void defineNameChars (const juce::String &chars)
 
void setEquation (const juce::String &equation)
 
void clearVariables ()
 
void addVariable (const juce::String &name, double *value)
 
void setVarFactory (std::function< double *(const char *)> fun)
 
void clearConstants ()
 
void addConstant (const juce::String &name, double value)
 
void addFunction (const juce::String &name, std::function< double(int id, const juce::String &)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double, double)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double, double, double)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double, double, double, double)> fun)
 
double evaluate ()
 
bool hasError ()
 
juce::String getError ()
 

Constructor & Destructor Documentation

◆ EquationParser() [1/2]

EquationParser::EquationParser ( )

◆ EquationParser() [2/2]

EquationParser::EquationParser ( const juce::String &  equation)

◆ ~EquationParser()

EquationParser::~EquationParser ( )

Member Function Documentation

◆ defineNameChars()

void EquationParser::defineNameChars ( const juce::String &  chars)

◆ setEquation()

void EquationParser::setEquation ( const juce::String &  equation)

◆ clearVariables()

void EquationParser::clearVariables ( )

◆ addVariable()

void EquationParser::addVariable ( const juce::String &  name,
double *  value 
)

◆ setVarFactory()

void EquationParser::setVarFactory ( std::function< double *(const char *)>  fun)

◆ clearConstants()

void EquationParser::clearConstants ( )

◆ addConstant()

void EquationParser::addConstant ( const juce::String &  name,
double  value 
)

◆ addFunction() [1/6]

void EquationParser::addFunction ( const juce::String &  name,
std::function< double(int id, const juce::String &)>  fun 
)

◆ addFunction() [2/6]

void EquationParser::addFunction ( const juce::String &  name,
std::function< double(int id)>  fun 
)

◆ addFunction() [3/6]

void EquationParser::addFunction ( const juce::String &  name,
std::function< double(int id, double)>  fun 
)

◆ addFunction() [4/6]

void EquationParser::addFunction ( const juce::String &  name,
std::function< double(int id, double, double)>  fun 
)

◆ addFunction() [5/6]

void EquationParser::addFunction ( const juce::String &  name,
std::function< double(int id, double, double, double)>  fun 
)

◆ addFunction() [6/6]

void EquationParser::addFunction ( const juce::String &  name,
std::function< double(int id, double, double, double, double)>  fun 
)

◆ evaluate()

double EquationParser::evaluate ( )

◆ hasError()

bool EquationParser::hasError ( )

◆ getError()

juce::String EquationParser::getError ( )

The documentation for this class was generated from the following file: