void ParameterSet::add_parameters(ParameterSet ¶ms, bool replace_existing) { for (unsigned int i = 0; i < params.size(); i++) { EParameter *param = params.get_parameter(i); if (param != nullptr) add_parameter(*param, replace_existing); else LOG(WARNING) << __FILE__ << "(" << __LINE__ << ") : Null pointer"; } }
ParameterSet::ParameterSet(ParameterSet ¶ms) { for (unsigned int i = 0; i<params.size(); i++) { EParameter *p = params.get_parameter(i); if (p != nullptr) add_parameter(*p, true); else LOG(WARNING) << __FILE__ << "(" << __LINE__ << ") : Null pointer"; delete p; } }