funct_mfptr Class Template Reference

Member function pointer to a one-dimensional function.

#include <funct.h>

Inheritance diagram for funct_mfptr:

funct

Detailed Description

template<class tclass, class param_t>
class funct_mfptr< tclass, param_t >

Definition at line 240 of file funct.h.


Public Member Functions

 funct_mfptr (tclass *tp, int(tclass::*fp)(double x, double &y, param_t &pa))
 Specify the member 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_mfptr (const funct_mfptr &f)
 Copy constructor.
funct_mfptroperator= (const funct_mfptr &f)
 Copy constructor.

Protected Attributes

int(tclass::* fptr )(double x, double &y, param_t &pa)
 Storage for the member function pointer.
tclass * tptr
 Store the pointer to the class instance.

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