![]() |
Belle II Software
release-08-02-04
|
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. More... | |
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 parmeter 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.
| 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.