muParserX 2.0.0
|
Interface for callback objects. More...
#include <mpICallback.h>
Inherits mup::IToken.
Inherited by mup::FunACos, mup::FunACosH, mup::FunASin, mup::FunASinH, mup::FunATan, mup::FunATanH, mup::FunAbs, mup::FunAtan2, mup::FunCbrt, mup::FunCmplxAbs, mup::FunCmplxArg, mup::FunCmplxConj, mup::FunCmplxCos, mup::FunCmplxCosH, mup::FunCmplxExp, mup::FunCmplxImag, mup::FunCmplxLn, mup::FunCmplxLog, mup::FunCmplxLog10, mup::FunCmplxLog2, mup::FunCmplxNorm, mup::FunCmplxPow, mup::FunCmplxReal, mup::FunCmplxSin, mup::FunCmplxSinH, mup::FunCmplxSqrt, mup::FunCmplxTan, mup::FunCmplxTanH, mup::FunCos, mup::FunCosH, mup::FunExp, mup::FunFmod, mup::FunHypot, mup::FunLn, mup::FunLog, mup::FunLog10, mup::FunLog2, mup::FunMatrixEye, mup::FunMatrixOnes, mup::FunMatrixSize, mup::FunMatrixZeros, mup::FunMax, mup::FunMin, mup::FunParserID, mup::FunPow, mup::FunRemainder, mup::FunReturnFalse, mup::FunSin, mup::FunSinH, mup::FunSizeOf, mup::FunSqrt, mup::FunStrLen, mup::FunStrToDbl, mup::FunStrToLower, mup::FunStrToUpper, mup::FunSum, mup::FunTan, mup::FunTanH, mup::FunTest0, mup::IOprtBin, mup::IOprtInfix, mup::IOprtPostfix, mup::OprtCreateArray, and mup::OprtIndex.
Public Member Functions | |
int | GetArgc () const |
Returns the m“number of arguments required by this callback. | |
void | SetParent (parent_type *a_pParent) |
Assign a parser object to the callback. | |
![]() | |
ECmdCode | GetCode () const |
return the token code. | |
const string_type & | GetIdent () const |
Return the token identifier string. | |
Protected Member Functions | |
parent_type * | GetParent () |
Returns a pointer to the parser object owning this callback. | |
![]() | |
virtual | ~IToken () |
Destructor (trivial). | |
IToken (const IToken &ref) | |
Copy constructor. | |
Interface for callback objects.
All Parser functions and operators must implement this interface.
int mup::ICallback::GetArgc | ( | ) | const |
Returns the m“number of arguments required by this callback.
|
protected |
Returns a pointer to the parser object owning this callback.
void mup::ICallback::SetParent | ( | parent_type * | a_pParent | ) |
Assign a parser object to the callback.
a_pParent | The parser that belongs to this callback object. |
The parent object can be used in order to access internals of the parser from within a callback object. Thus enabling callbacks to delete variables or functions if this is desired.