|
FuncSketch
|
Class of binary operators. More...
#include <func_sketch/math/binary_operator.h>
Public Member Functions | |
| template<BinaryOperatorType T> | |
| BinaryOperator (T operator_object) | |
| Constructor. | |
| std::string_view | name () const |
| Get the name of the operator. | |
| void | operator() (const Number &left, const Number &right, Number &result) const |
| Operate on a pair of scalars. | |
Private Types | |
| using | GetNameSignature |
| Signature of function to get the name of the operator. | |
| using | ScalarOperatorSignature |
| Signature of function to operate on a pair of scalars. | |
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 pair of scalars. | |
Class of binary operators.
Definition at line 34 of file binary_operator.h.
|
private |
Signature of function to get the name of the operator.
Definition at line 74 of file binary_operator.h.
Signature of function to operate on a pair of scalars.
Definition at line 78 of file binary_operator.h.
|
inlineexplicit |
Constructor.
| T | Type of the operator object. |
| [in] | operator_object | Operator object. |
Definition at line 43 of file binary_operator.h.
|
inlinenodiscard |
Get the name of the operator.
Definition at line 58 of file binary_operator.h.
|
inline |
Operate on a pair of scalars.
| [in] | left | Left scalar. |
| [in] | right | Right scalar. |
| [out] | result | Result scalar. |
Definition at line 67 of file binary_operator.h.
|
private |
Operator object.
Definition at line 83 of file binary_operator.h.
|
private |
Function to get the name of the operator.
Definition at line 86 of file binary_operator.h.
|
private |
Function to operate on a pair of scalars.
Definition at line 89 of file binary_operator.h.