|
FuncSketch
|
Class of unary operators. More...
#include <func_sketch/math/unary_operator.h>
Public Member Functions | |
| template<UnaryOperatorType T> | |
| UnaryOperator (T operator_object) | |
| Constructor. | |
| std::string_view | name () const |
| Get the name of the operator. | |
| void | operator() (const Number &arg, Number &result) const |
| Operate on a scalar. | |
Private Types | |
| using | GetNameSignature |
| Signature of function to get the name of the operator. | |
| using | ScalarOperatorSignature |
| Signature of function to operate on a scalar. | |
Private Attributes | |
| utilities::Any | operator_ |
| Operator object. | |
| GetNameSignature * | get_name_ |
| Function to get the name of the operator. | |
| ScalarOperatorSignature * | scalar_operator_ |
| Function to operate on a scalar. | |
Class of unary operators.
Definition at line 34 of file unary_operator.h.
|
private |
Signature of function to get the name of the operator.
Definition at line 71 of file unary_operator.h.
Signature of function to operate on a scalar.
Definition at line 75 of file unary_operator.h.
|
inlineexplicit |
Constructor.
| T | Type of the operator object. |
| [in] | operator_object | Operator object. |
Definition at line 43 of file unary_operator.h.
|
inlinenodiscard |
Get the name of the operator.
Definition at line 57 of file unary_operator.h.
|
inline |
Operate on a scalar.
| [in] | arg | Argument. |
| [out] | result | Result. |
Definition at line 65 of file unary_operator.h.
|
private |
Operator object.
Definition at line 80 of file unary_operator.h.
|
private |
Function to get the name of the operator.
Definition at line 83 of file unary_operator.h.
|
private |
Function to operate on a scalar.
Definition at line 86 of file unary_operator.h.