|
FuncSketch
|
Class of lists of constants. More...
#include <func_sketch/math/constant_list.h>
Public Member Functions | |
| ConstantList ()=default | |
| Constructor. | |
| void | emplace (const std::string &name, Number value) |
| Append a constant to the list. | |
| std::optional< Number > | get (const std::string &name) const |
| Get a constant from the list. | |
Private Attributes | |
| std::unordered_map< std::string, Number > | constants_ |
| List of constants. | |
Class of lists of constants.
Definition at line 33 of file constant_list.h.
|
inline |
Append a constant to the list.
| [in] | name | Name of the constant. |
| [in] | value | Value of the constant. |
Definition at line 46 of file constant_list.h.
|
inlinenodiscard |
Get a constant from the list.
| [in] | name | Name of the constant. |
Definition at line 56 of file constant_list.h.
|
private |
List of constants.
Definition at line 66 of file constant_list.h.