class CFunctionObj : public FunctionObj

A functor for using with C-type global functions (by supplying a pointer to the function when constructing)

Inheritance:


Public Methods

CFunctionObj(double (fn)(const vector<double>&))
Construction: supply as argument a pointer to a (C-type) function taking a vector of double's as argument
double operator)(const vector<double>& x)
Functor: call the C-type function

Inherited from FunctionObj:

Public Methods

virtual int NumberOfCalls()

Documentation

A functor for using with C-type global functions (by supplying a pointer to the function when constructing)
CFunctionObj(double (fn)(const vector<double>&))
Construction: supply as argument a pointer to a (C-type) function taking a vector of double's as argument
Parameters:
fn - the C-type function

double operator)(const vector<double>& x)
Functor: call the C-type function


This class has no child classes.



this page was generated by


Joao Pedro Pedroso
Oct 21, 1997