|
FuncSketch
|
Class of lists of mathematical functions. More...
#include <func_sketch/math/math_function_list.h>
Public Member Functions | |
| MathFunctionList ()=default | |
| Constructor. | |
| template<MathFunctionType T> | |
| void | emplace (T &&function) |
| Append a mathematical function to the list. | |
| std::optional< MathFunction > | get (const std::string &name) const |
| Get a mathematical function from the list. | |
Private Attributes | |
| std::unordered_map< std::string, MathFunction > | functions_ |
| List of mathematical functions. | |
Class of lists of mathematical functions.
Definition at line 35 of file math_function_list.h.
|
inline |
Append a mathematical function to the list.
| [in] | function | Mathematical function to append. |
Definition at line 48 of file math_function_list.h.
|
inlinenodiscard |
Get a mathematical function from the list.
| [in] | name | Name of the mathematical function. |
Definition at line 58 of file math_function_list.h.
|
private |
List of mathematical functions.
Definition at line 69 of file math_function_list.h.