#include <functions.hh>


Public Types | |
| typedef double(* | c_function_t )(void *, double) |
| The type of arguments it accepts. | |
Public Member Functions | |
| CFuncParam (Session *s, const char *n, c_function_t func, void *param, FuncDef *derivat=NULL) | |
| virtual double | evaluate (const double *vars, const double *args) |
| The function doing the actual job... | |
| void * | param () |
| void | set_param (void *p) |
Protected Attributes | |
| c_function_t | func |
| The C function to be called. | |
| FuncDef * | deriv |
| void * | _param |
| The parameter ! | |
A basic C function with one argument and one external parameter
FuncDef* SCalc::CFuncParam::deriv [protected] |
The derivative. A pointer to a function. If NULL, then the function has to take care to provide it when necessary (or fail) and to free it when it dies.
Reimplemented from SCalc::CFunc.
1.7.1