|
PARTONS/NumA++
|
Numerical Analysis C++ routines
|
![]() |
Template class for defining one-dimensional functions that can be used as arguments in virtual methods. More...
Public Member Functions | |
| Functor1D (PointerToObj *object, PointerToFunc function) | |
| Constructor. More... | |
| virtual | ~Functor1D () |
| Default destructor. More... | |
| double | operator() (double x, std::vector< double > ¶meters) |
| Operator allowing the functor to be used as a function. More... | |
| double | operator() (double x) |
| Operator allowing the functor to be used as a function. More... | |
Public Member Functions inherited from NumA::FunctionType1D | |
| FunctionType1D () | |
| Empty constructor. More... | |
| virtual | ~FunctionType1D () |
| Default destructor. More... | |
Private Member Functions | |
| Functor1D (const Functor1D &) | |
| Not implemented. Disallows copy. More... | |
| Functor1D & | operator= (const Functor1D &) |
| Not implemented. Disallows comparisons. More... | |
Private Attributes | |
| PointerToObj * | m_pObject |
| Pointer to an object instantiating the class where the function is defined. More... | |
| PointerToFunc | m_pFunction |
| Reference to the function. More... | |
Template class for defining one-dimensional functions that can be used as arguments in virtual methods.
This is needed to circumvent the issue that templates and virtual methods are incompatible.
See FunctionType1D documentation for usage.
|
inline |
Constructor.
| object | Pointer to an object instantiating the class where the function is defined. |
| function | Reference to the function. |
|
inlinevirtual |
Default destructor.
|
private |
Not implemented. Disallows copy.
|
inlinevirtual |
Operator allowing the functor to be used as a function.
| x | Argument of the function represented by the functor. |
Implements NumA::FunctionType1D.
|
inlinevirtual |
Operator allowing the functor to be used as a function.
| x | Argument of the function represented by the functor. |
| parameters | Parameters that can be passed to the function. |
Implements NumA::FunctionType1D.
|
private |
Not implemented. Disallows comparisons.
|
private |
Reference to the function.
|
private |
Pointer to an object instantiating the class where the function is defined.