funct_cmfptr_noerr Class Template Reference

Const member function pointer to a one-dimensional function returning the function value. More...

#include <funct.h>

Inheritance diagram for funct_cmfptr_noerr:

funct

Detailed Description

template<class tclass, class param_t>
class funct_cmfptr_noerr< tclass, param_t >

Note:
While this is designed to accept a pointer to a const member function, the choice of whether the class pointer given in the template type tclass is const or not is up to the user.

Definition at line 440 of file funct.h.


Public Member Functions

 funct_cmfptr_noerr (tclass *tp, double(tclass::*fp)(double x, param_t &pa) const)
 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_cmfptr_noerr (const funct_cmfptr_noerr &f)
 Copy constructor.
funct_cmfptr_noerroperator= (const funct_cmfptr_noerr &f)
 Copy constructor.

Protected Attributes

double(tclass::* fptr )(double x, param_t &pa) const
 Storage for the const 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