SCalc
Public Types | Public Member Functions | Protected Attributes
SCalc::CFuncParam Class Reference

#include <functions.hh>

Inheritance diagram for SCalc::CFuncParam:
Inheritance graph
[legend]
Collaboration diagram for SCalc::CFuncParam:
Collaboration graph
[legend]

List of all members.

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.
FuncDefderiv
void * _param
 The parameter !

Detailed Description

A basic C function with one argument and one external parameter


Member Data Documentation

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.


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