PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Template class for defining multi-dimensional functions that can be used as arguments in virtual methods. More...
Public Member Functions | |
FunctorMD (PointerToObj *object, PointerToFunc function) | |
Constructor. More... | |
virtual | ~FunctorMD () |
Default destructor. More... | |
double | operator() (VectorD &variables, std::vector< double > ¶meters) |
Operator allowing the functor to be used as a function. More... | |
double | operator() (VectorD &variables) |
Operator allowing the functor to be used as a function. More... | |
Public Member Functions inherited from NumA::FunctionTypeMD | |
FunctionTypeMD () | |
Empty constructor. More... | |
virtual | ~FunctionTypeMD () |
Default destructor. More... | |
Private Member Functions | |
FunctorMD (const FunctorMD &) | |
Not implemented. Disallows copy. More... | |
FunctorMD & | operator= (const FunctorMD &) |
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 multi-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 FunctionTypeMD 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.
variables | Multi-variate argument of the function represented by the functor. |
Implements NumA::FunctionTypeMD.
|
inlinevirtual |
Operator allowing the functor to be used as a function.
variables | Multi-variate argument of the function represented by the functor. |
parameters | Parameters that can be passed to the function. |
Implements NumA::FunctionTypeMD.
|
private |
Not implemented. Disallows comparisons.
|
private |
Reference to the function.
|
private |
Pointer to an object instantiating the class where the function is defined.