Belle II Software  release-05-02-19
AssignParameterVisitor Struct Reference

A helper class to unpack a boost::variant parameter value and set it in the parameter list. More...

#include <ParameterVariant.h>

Inheritance diagram for AssignParameterVisitor:
Collaboration diagram for AssignParameterVisitor:

Public Member Functions

 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.
 
template<class T >
void operator() (const T &t) const
 Function call that receives the parameter value from the boost::variant with the correct type.
 
template<class T >
void operator() (const T &t) const
 Assign the value to a keyword in the dictionary.
 

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

ModuleParamListm_moduleParamList
 Parameter list which contains the parameter to be set.
 
std::string m_paramName
 Name of the parameter to be set.
 

Detailed Description

A helper class to unpack a boost::variant parameter value and set it in the parameter list.

Definition at line 45 of file ParameterVariant.h.


The documentation for this struct was generated from the following files: