STK++ 0.9.13
|
Interface base class for functions. More...
#include <STK_IFunction.h>
Public Member Functions | |
Real | operator() (Real const &x) const |
Real | xmin () const |
Real | xmax () const |
Real | xminImpl () const |
Real | xmaxImpl () const |
![]() | |
Function & | asDerived () |
static cast : return a reference of this with a cast to the derived class. | |
Function const & | asDerived () const |
static cast : return a const reference of this with a cast to the derived class. | |
Function * | asPtrDerived () |
static cast : return a ptr on a Derived of this with a cast to the derived class. | |
Function const * | asPtrDerived () const |
static cast : return a ptr on a constant Derived of this with a cast to the derived class. | |
Function * | clone () const |
create a leaf using the copy constructor of the Derived class. | |
Function * | clone (bool isRef) const |
create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not. | |
Protected Member Functions | |
IFunction () | |
Default Constructor. | |
~IFunction () | |
destructor. | |
![]() | |
IRecursiveTemplate () | |
constructor. | |
~IRecursiveTemplate () | |
destructor. | |
Interface base class for functions.
The IFunction class is the template base class for all functions.
IFunction takes a function template parameter. This parameter is the type of the class which derives from it. For example
The pseudo virtual function defined in this interface and to implement have the following definition:
Default implementation of the xmin()
and xmax()
methods is the interval
Definition at line 69 of file STK_IFunction.h.
|
inlineprotected |
|
inlineprotected |
|
inline |
x | a real value in the range (xmin, xmax). |
Definition at line 81 of file STK_IFunction.h.
References STK::IRecursiveTemplate< Function >::asDerived().
|
inline |
Definition at line 86 of file STK_IFunction.h.
References STK::IRecursiveTemplate< Function >::asDerived().
|
inline |
Definition at line 91 of file STK_IFunction.h.
|
inline |
Definition at line 84 of file STK_IFunction.h.
References STK::IRecursiveTemplate< Function >::asDerived().
|
inline |
Definition at line 89 of file STK_IFunction.h.