|
Template Numerical Library version\ main:351d08c5f
|
Public Member Functions | |
| template<class T> | |
| void | addList (const std::string &name, const std::vector< T > &value) |
| Adds new list parameter to the ParameterContainer. | |
| template<class T, class... Ts> | |
| void | addList (const std::string &name, const T &value, const Ts &... values) |
| Adds new list parameter to the ParameterContainer. | |
| template<class T> | |
| void | addParameter (const std::string &name, const std::vector< T > &value) |
| Adds new parameter to the ParameterContainer. | |
| template<class T> | |
| void | addParameter (const std::string &name, const T &value) |
| Adds new parameter to the ParameterContainer. | |
| bool | checkParameter (const std::string &name) const |
| Checks if the ParameterContainer contains a parameter specified by its name. | |
| bool | checkParameters (std::initializer_list< std::string > names) const |
| Checks if the ParameterContainer contains all specified parameter names. | |
| template<class T> | |
| bool | checkParameterType (const std::string &name) const |
| Checks if the parameter name already exists in ParameterContainer and holds a value of type T. | |
| template<class T> | |
| std::vector< T > | getList (const std::string &name) const |
| Returns parameter list. | |
| template<class T> | |
| T | getParameter (const std::string &name) const |
| Returns parameter value. | |
| template<class StaticArray> | |
| StaticArray | getXyz (const std::string &prefix) const |
| Returns up to three parameter values as a StaticArray. | |
| template<class T> | |
| void | setParameter (const std::string &name, const T &value) |
| Assigns new value to the parameter name. | |
Protected Attributes | |
| std::unordered_map< std::string, Parameter > | parameters |
|
inline |
Adds new list parameter to the ParameterContainer.
| name | Name of the new parameter. |
| value | Vector of values assigned to the parameter. |
|
inline |
Adds new list parameter to the ParameterContainer.
| name | Name of the new parameter. |
| value | First value assigned to the parameter. |
| values | Other values assigned to the parameter. |
|
inline |
Adds new parameter to the ParameterContainer.
| name | Name of the new parameter. |
| value | Value assigned to the parameter. |
|
inline |
Adds new parameter to the ParameterContainer.
| name | Name of the new parameter. |
| value | Value assigned to the parameter. |
|
inlinenodiscard |
Checks if the ParameterContainer contains a parameter specified by its name.
| name | Name of the parameter. |
|
inlinenodiscard |
Checks if the ParameterContainer contains all specified parameter names.
| names | List of the parameter names. |
|
inlinenodiscard |
Checks if the parameter name already exists in ParameterContainer and holds a value of type T.
| name | Name of the parameter. |
|
inlinenodiscard |
Returns parameter list.
| name | Name of the parameter list. |
|
inlinenodiscard |
Returns parameter value.
| name | Name of the parameter. |
|
inlinenodiscard |
Returns up to three parameter values as a StaticArray.
| prefix | Prefix of the parameter names. The names are prefix-x, prefix-y and prefix-z. |
|
inline |
Assigns new value to the parameter name.
| T | Type of the parameter value. |
| name | Name of parameter. |
| value | Value of type T assigned to the parameter. |