FuncSketch
Loading...
Searching...
No Matches
func_sketch::math::MathFunctionList Class Reference

Class of lists of mathematical functions. More...

#include <func_sketch/math/math_function_list.h>

Collaboration diagram for func_sketch::math::MathFunctionList:

Public Member Functions

 MathFunctionList ()=default
 Constructor.
template<MathFunctionType T>
void emplace (T &&function)
 Append a mathematical function to the list.
std::optional< MathFunctionget (const std::string &name) const
 Get a mathematical function from the list.

Private Attributes

std::unordered_map< std::string, MathFunctionfunctions_
 List of mathematical functions.

Detailed Description

Class of lists of mathematical functions.

Definition at line 35 of file math_function_list.h.

Member Function Documentation

◆ emplace()

template<MathFunctionType T>
void func_sketch::math::MathFunctionList::emplace ( T && function)
inline

Append a mathematical function to the list.

Parameters
[in]functionMathematical function to append.

Definition at line 48 of file math_function_list.h.

◆ get()

std::optional< MathFunction > func_sketch::math::MathFunctionList::get ( const std::string & name) const
inlinenodiscard

Get a mathematical function from the list.

Parameters
[in]nameName of the mathematical function.
Returns
Mathematical function if found, otherwise std::nullopt.

Definition at line 58 of file math_function_list.h.

Member Data Documentation

◆ functions_

std::unordered_map<std::string, MathFunction> func_sketch::math::MathFunctionList::functions_
private

List of mathematical functions.

Definition at line 69 of file math_function_list.h.


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