ode_funct_mfptr Class Template Reference

Provide ODE functions in the form of member function pointers. More...

#include <ode_funct.h>

Inheritance diagram for ode_funct_mfptr:

ode_funct

Detailed Description

template<class tclass, class param_t, class vec_t = ovector_base>
class ode_funct_mfptr< tclass, param_t, vec_t >

Provide ODE functions in the form of member function pointers.

Definition at line 118 of file ode_funct.h.


Public Member Functions

 ode_funct_mfptr (tclass *tp, int(tclass::*fp)(double x, size_t nv, const vec_t &y, vec_t &dydx, param_t &))
 Create an object given a class and member function pointer.
virtual int operator() (double x, size_t nv, const vec_t &y, vec_t &dydx, param_t &pa)
 Compute the nv derivatives as a function of the nv functions specified in y at the point x.

Protected Attributes

int(tclass::* fptr )(double x, size_t nv, const vec_t &y, vec_t &dydx, param_t &)
 The pointer to the member function.
tclass * tptr
 The pointer to the class.

Private Member Functions

 ode_funct_mfptr (const ode_funct_mfptr &)
ode_funct_mfptroperator= (const ode_funct_mfptr &)

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