Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
Interface class representing a function with an arbitrary number of parameters. More...
#include <Function.h>
Public Member Functions | |
virtual std::unique_ptr< NAryFunction > | clone () const =0 |
Interface class representing a function with an arbitrary number of parameters.
N | Number of parameters |
This class hides away NAryFunctionImpl, making easier to define a function with a given number of parameters: i.e. NAryFunction<5>
clone()
is defined here and not in NAryFunctionImpl Definition at line 104 of file Function.h.
|
pure virtual |
Creates a clone of the function object. All subclasses must implement this method, to enable copying of Function objects when only a reference to the Function class is available.
Implemented in Euclid::MathUtils::FunctionAdapter, Euclid::MathUtils::Piecewise, Euclid::MathUtils::Polynomial, Euclid::MathUtils::DefaultMultiplication, Euclid::MathUtils::LinearInterpolator, and Euclid::MathUtils::CubicInterpolator.