MADNESS
version 0.9
|
Encapsulation of prototypes for a numerical parser function. More...
#include <muParserCallback.h>
Public Member Functions | |
ParserCallback (fun_type0 a_pFun, bool a_bAllowOpti) | |
ParserCallback (fun_type1 a_pFun, bool a_bAllowOpti, int a_iPrec=-1, ECmdCode a_iCode=cmFUNC) | |
ParserCallback (fun_type2 a_pFun, bool a_bAllowOpti, int a_iPrec=-1, ECmdCode a_iCode=cmFUNC) | |
ParserCallback (fun_type3 a_pFun, bool a_bAllowOpti) | |
ParserCallback (fun_type4 a_pFun, bool a_bAllowOpti) | |
ParserCallback (fun_type5 a_pFun, bool a_bAllowOpti) | |
ParserCallback (multfun_type a_pFun, bool a_bAllowOpti) | |
ParserCallback (strfun_type1 a_pFun, bool a_bAllowOpti) | |
ParserCallback (strfun_type2 a_pFun, bool a_bAllowOpti) | |
ParserCallback (strfun_type3 a_pFun, bool a_bAllowOpti) | |
ParserCallback () | |
Default constructor. More... | |
ParserCallback (const ParserCallback &a_Fun) | |
Copy constructor. More... | |
ParserCallback * | Clone () const |
Clone this instance and return a pointer to the new instance. More... | |
bool | IsOptimizable () const |
Return tru if the function is conservative. More... | |
void * | GetAddr () const |
Get the callback address for the parser function. More... | |
ECmdCode | GetCode () const |
Return the callback code. More... | |
ETypeCode | GetType () const |
int | GetPri () const |
Return the operator priority. More... | |
int | GetArgc () const |
Returns the number of function Arguments. More... | |
Encapsulation of prototypes for a numerical parser function.
Encapsulates the prototyp for numerical parser functions. The class stores the number of arguments for parser functions as well as additional flags indication the function is non optimizeable. The pointer to the callback function pointer is stored as void* and needs to be casted according to the argument count. Negative argument counts indicate a parser function with a variable number of arguments. This class is not used for string function prototyping.
mu::ParserCallback::ParserCallback | ( | fun_type0 | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | fun_type1 | a_pFun, |
bool | a_bAllowOpti, | ||
int | a_iPrec = -1 , |
||
ECmdCode | a_iCode = cmFUNC |
||
) |
mu::ParserCallback::ParserCallback | ( | fun_type2 | a_pFun, |
bool | a_bAllowOpti, | ||
int | a_iPrec = -1 , |
||
ECmdCode | a_iCode = cmFUNC |
||
) |
mu::ParserCallback::ParserCallback | ( | fun_type3 | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | fun_type4 | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | fun_type5 | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | multfun_type | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | strfun_type1 | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | strfun_type2 | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | strfun_type3 | a_pFun, |
bool | a_bAllowOpti | ||
) |
mu::ParserCallback::ParserCallback | ( | ) |
mu::ParserCallback::ParserCallback | ( | const ParserCallback & | a_Fun | ) |
Copy constructor.
nothrow |
ParserCallback * mu::ParserCallback::Clone | ( | ) | const |
Clone this instance and return a pointer to the new instance.
References ParserCallback().
void * mu::ParserCallback::GetAddr | ( | ) | const |
Get the callback address for the parser function.
The type of the address is void. It needs to be recasted according to the argument number to the right type.
nothrow |
Referenced by mu::ParserToken< value_type, string_type >::Set().
int mu::ParserCallback::GetArgc | ( | ) | const |
Returns the number of function Arguments.
ECmdCode mu::ParserCallback::GetCode | ( | ) | const |
Return the callback code.
Referenced by mu::ParserToken< value_type, string_type >::Set().
int mu::ParserCallback::GetPri | ( | ) | const |
Return the operator priority.
Only valid if the callback token is an operator token (binary or infix).
ETypeCode mu::ParserCallback::GetType | ( | ) | const |
bool mu::ParserCallback::IsOptimizable | ( | ) | const |
Return tru if the function is conservative.
Conservative functions return always the same result for the same argument.
nothrow |