funct_mfptr_nopar Class Template Reference

Member function pointer to a one-dimensional function with no parameters.

#include <funct.h>

Inheritance diagram for funct_mfptr_nopar:

funct

Detailed Description

template<class tclass, class param_t>
class funct_mfptr_nopar< tclass, param_t >

Definition at line 504 of file funct.h.


Public Member Functions

 funct_mfptr_nopar (tclass *tp, double(tclass::*fp)(double x))
 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_nopar (const funct_mfptr_nopar &f)
 Copy constructor.
funct_mfptr_noparoperator= (const funct_mfptr_nopar &f)
 Copy constructor.

Protected Attributes

double(tclass::* fptr )(double x)
 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