funct_fptr Class Template Reference

Function pointer to a function. More...

#include <funct.h>

Inheritance diagram for funct_fptr:

funct

Detailed Description

template<class param_t>
class funct_fptr< param_t >

Function pointer to a function.

Definition at line 71 of file funct.h.


Public Member Functions

 funct_fptr (int(*fp)(double x, double &y, param_t &pa))
 Specify the function pointer.
virtual int operator() (double x, double &y, param_t &pa)
 Compute the function at point x, with result y.
virtual double operator() (double x, param_t &pa)
 Compute the function at point x, returning the result.

Protected Member Functions

 funct_fptr (const funct_fptr &f)
 Copy constructor.
funct_fptroperator= (const funct_fptr &f)
 Copy constructor.

Protected Attributes

int(* fptr )(double x, double &y, param_t &pa)
 Storage for the function pointer.

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page