Alexandria  2.14.1
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Euclid::MathUtils::DefaultMultiplication Class Reference
Inheritance diagram for Euclid::MathUtils::DefaultMultiplication:
[legend]
Collaboration diagram for Euclid::MathUtils::DefaultMultiplication:
[legend]

Public Member Functions

 DefaultMultiplication (const Function &f1, const Function &f2)
 
double operator() (const double x) const override
 
std::unique_ptr< Functionclone () const override
 
- Public Member Functions inherited from Euclid::MathUtils::Function
virtual ~Function ()=default
 Default destructor. More...
 

Private Attributes

std::unique_ptr< Functionm_f1
 
std::unique_ptr< Functionm_f2
 

Detailed Description

Definition at line 50 of file function_tools.cpp.

Constructor & Destructor Documentation

Euclid::MathUtils::DefaultMultiplication::DefaultMultiplication ( const Function f1,
const Function f2 
)
inline

Definition at line 52 of file function_tools.cpp.

References Euclid::MathUtils::Function::clone().

Here is the call graph for this function:

Member Function Documentation

std::unique_ptr<Function> Euclid::MathUtils::DefaultMultiplication::clone ( ) const
inlineoverridevirtual

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.

Returns
A copy of the Function object

Implements Euclid::MathUtils::Function.

Definition at line 56 of file function_tools.cpp.

References m_f1, and m_f2.

double Euclid::MathUtils::DefaultMultiplication::operator() ( const double  x) const
inlineoverridevirtual

Converts the value x from the input domain to the output domain.

Parameters
xThe value to convert
Returns
The value of the output domain

Implements Euclid::MathUtils::Function.

Definition at line 53 of file function_tools.cpp.

References m_f1, and m_f2.

Member Data Documentation

std::unique_ptr<Function> Euclid::MathUtils::DefaultMultiplication::m_f1
private

Definition at line 60 of file function_tools.cpp.

Referenced by clone(), and operator()().

std::unique_ptr<Function> Euclid::MathUtils::DefaultMultiplication::m_f2
private

Definition at line 61 of file function_tools.cpp.

Referenced by clone(), and operator()().


The documentation for this class was generated from the following file: