Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Protected Member Functions | Protected Attributes
funct_cmfptr_param< tclass, param_t > Class Template Reference

Const member function pointer to a one-dimensional function with a parameter. More...

#include <funct.h>

Inheritance diagram for funct_cmfptr_param< tclass, param_t >:
funct

Detailed Description

template<class tclass, class param_t>
class funct_cmfptr_param< 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 315 of file funct.h.

Public Member Functions

 funct_cmfptr_param (tclass *tp, double(tclass::*fp)(double x, param_t &pa) const, param_t &pa)
 Specify the member function pointer.
virtual double operator() (double x, param_t &pa)
 Compute the function at point x, with result y.

Protected Member Functions

 funct_cmfptr_param (const funct_cmfptr_param &f)
 Copy constructor.
funct_cmfptr_paramoperator= (const funct_cmfptr_param &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.
param_t * pp
 The parameter.

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.