Belle II Software development
|
A helper class to unpack a boost::variant parameter value and set it in the parameter list. More...
#include <ParameterVariant.h>
Public Member Functions | |
AssignParameterVisitor (ModuleParamList *moduleParamList, const std::string ¶mName) | |
Constructor taking the module parameter list and the name of the parameter to be set from the boost::variant. | |
template<class T > | |
void | operator() (const T &t) const |
Function call that receives the parameter value from the boost::variant with the correct type. | |
Static Public Member Functions | |
template<class ... T> | |
static void | update (ModuleParamList *moduleParamList, const std::map< std::string, boost::variant< T... > > &valuesByName) |
Transfer all the parameters from the map boost:variant values to the module parameter list. | |
Private Attributes | |
ModuleParamList * | m_moduleParamList |
Parameter list which contains the parameter to be set. | |
std::string | m_paramName |
Name of the parameter to be set. | |
A helper class to unpack a boost::variant parameter value and set it in the parameter list.
Definition at line 35 of file ParameterVariant.h.
AssignParameterVisitor | ( | ModuleParamList * | moduleParamList, |
const std::string & | paramName | ||
) |
Constructor taking the module parameter list and the name of the parameter to be set from the boost::variant.
Definition at line 18 of file ParameterVariant.cc.
template void operator() | ( | const T & | t | ) | const |
Function call that receives the parameter value from the boost::variant with the correct type.
Assign the value to a keyword in the dictionary.
Definition at line 27 of file ParameterVariant.cc.
|
inlinestatic |
Transfer all the parameters from the map boost:variant values to the module parameter list.
Definition at line 39 of file ParameterVariant.h.
|
private |
Parameter list which contains the parameter to be set.
Definition at line 59 of file ParameterVariant.h.
|
private |
Name of the parameter to be set.
Definition at line 62 of file ParameterVariant.h.