Class FunctionParameters¶
Defined in File Parameters.h
Class Documentation¶
-
class
SmartPeak::FunctionParameters¶ FunctionParameters holds a name and an associated list of Parameters.
Public Functions
-
FunctionParameters() = default¶ default constructor
-
inline
FunctionParameters(const std::string &function_name)¶ construct empty, named FunctionParameter
- Parameters
function_name – [in] the function name
-
FunctionParameters(const std::string &function_name, const std::vector<std::map<std::string, std::string>> ¶meters_list)¶ construct from a list of map
- Parameters
function_name – [in] the function name
parameters_list – [in] list of parmater (map representation)
-
FunctionParameters(const OpenMS::DefaultParamHandler ¶m_handler)¶ construct from OpenMS ParameterHandler
- Parameters
param_handler – [in] the OpenMS ParameterHandler to convert
-
void
setAsSchema(bool is_schema)¶ Mark all parameters as schema parameter.
- Parameters
is_schema – [in] set as schema (true) or not (false)
-
inline const std::string &
getFunctionName() const¶
-
void
addParameter(const Parameter ¶meter)¶ Add a parameter. Doesn’t Replace if already exists
- Parameters
parameter – [in] the parameter to add
-
void
removeParameter(const std::string ¶meter_name)¶ Remove a parameter.
- Parameters
parameter_name – [in] the parameter name
-
void
merge(const FunctionParameters &other)¶ Merge two FunctionsParameters.
If one parameter already exists in the other, use it as Schema for the other parameter.
If the parameter does not exists, just add.
- Parameters
other – [in] the FunctionParameter to merge with
-
bool
operator==(const FunctionParameters &other) const¶
-
inline bool
operator!=(const FunctionParameters &other) const¶
-
inline size_t
size() const¶
-
inline bool
empty() const¶
-