libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moParserFunction Class Reference

#include <moMathFunction.h>

Inheritance diagram for moParserFunction:
moMathFunction moAbstract

Public Member Functions

 moParserFunction ()
 
virtual MOboolean Init (const moText &p_Expression, moMoldeoObject *p_pMOB=NULL)
 
MOboolean Finish ()
 
- Public Member Functions inherited from moMathFunction
 moMathFunction ()
 
virtual ~moMathFunction ()
 
virtual void SetExpression (const moText &p_Expression)
 
virtual moTextGetExpression ()
 
virtual void SetParameters (double s,...)
 
virtual double Eval ()
 
double LastEval ()
 
virtual double Eval (double x,...)
 
virtual double DEval (int n,...)
 
MOuint GetParameterCount ()
 
moTextGetParameterName (int i)
 
double GetParameterValue (int i)
 
MOuint GetVariableCount ()
 
moTextGetVariableName (int i)
 
double GetVariableValue (int i)
 
double operator() (double x,...)
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
MOboolean Initialized ()
 Pregunta si est� inicializado. More...
 

Protected Member Functions

void AddMathFunctions ()
 
void AddMathConstants ()
 
MOboolean CheckVariables ()
 
void OnParamUpdate ()
 
double OnFuncEval ()
 
double OnDerivEval (int n)
 
void BuildParamList ()
 
void BuildVarList ()
 

Protected Attributes

double x
 
moParserm_pParser
 
- Protected Attributes inherited from moMathFunction
moText m_EmptyName
 
moText m_Expression
 
moMathVariableArray m_Parameters
 
moMathVariableArray m_Variables
 
double m_LastEval
 
moConfigm_pConfig
 
moMoldeoObjectm_pMOB
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicializaci�n More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresi�n de errores para depuraci�n More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

Clase que encapsula un muParser.

Definition at line 669 of file moMathFunction.h.

Constructor & Destructor Documentation

moParserFunction::moParserFunction ( )

Definition at line 571 of file moMathFunction.cpp.

Member Function Documentation

void moParserFunction::AddMathConstants ( )
protected

Definition at line 706 of file moMathFunction.cpp.

void moParserFunction::AddMathFunctions ( )
protected

Definition at line 668 of file moMathFunction.cpp.

void moParserFunction::BuildParamList ( )
inlineprotectedvirtual

Funci�n abstracta pura que es llamada desde la funci�n 'Init'. Debe implemtar la construcci�n de la lista de par�metros.

See also
Init

Implements moMathFunction.

Definition at line 702 of file moMathFunction.h.

void moParserFunction::BuildVarList ( )
inlineprotectedvirtual

Funci�n abstracta pura que es llamada desde la funci�n 'Init'. Debe implemtar la construcci�n de la lista de variables.

See also
Init

Implements moMathFunction.

Definition at line 703 of file moMathFunction.h.

MOboolean moParserFunction::CheckVariables ( )
protected

Definition at line 727 of file moMathFunction.cpp.

MOboolean moParserFunction::Finish ( )
virtual

Funci�n de finalizaci�n.

Returns
El resultado de la operaci�n de finalizaci�n.

Reimplemented from moMathFunction.

Definition at line 658 of file moMathFunction.cpp.

MOboolean moParserFunction::Init ( const moText p_Expression,
moMoldeoObject p_pMOB = NULL 
)
virtual

Funci�n de inicializacion en donde se asigna la expresi�n que caracteriza la funci�n y se construyen las listas de par�metros y variables.

Parameters
p_Expressionla expresi�n matem�tica.
Returns
El resultado de la operaci�n de inicializaci�n.

ASSOCIATE VARIABLES WITH PARAMETERS....

check for variable in config parameters

assign pointer to variable!!!!

check for variable in object inlets

Reimplemented from moMathFunction.

Definition at line 579 of file moMathFunction.cpp.

double moParserFunction::OnDerivEval ( int  n)
inlineprotectedvirtual

Funci�n abstracta pura que es llamada desde la funci�n 'DEval'. Debe implementar el c�lculo de la derivada n-�sima de la funci�n dados los valores actuales de las variables.

Returns
El valor de la funci�n
See also
DEval

Implements moMathFunction.

Definition at line 700 of file moMathFunction.h.

double moParserFunction::OnFuncEval ( )
protectedvirtual

Funci�n abstracta pura que es llamada desde la funci�n 'Eval'. Debe implementar el c�lculo de la funci�n dados los valores actuales de las variables.

Returns
El valor de la funci�n
See also
Eval

Implements moMathFunction.

Definition at line 772 of file moMathFunction.cpp.

void moParserFunction::OnParamUpdate ( )
inlineprotectedvirtual

Funci�n abstracta pura que es llamada desde la funci�n 'SetParameters'. Debe implementar los c�lculos que actualizan la funci�n dado un nuevo conjunto de par�metros.

See also
SetParameters

Implements moMathFunction.

Definition at line 698 of file moMathFunction.h.

Member Data Documentation

moParser* moParserFunction::m_pParser
protected

Definition at line 692 of file moMathFunction.h.

double moParserFunction::x
protected

Definition at line 690 of file moMathFunction.h.


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