7 #include "GeoGenericFunctions/ParameterProduct.h" 8 #include "GeoGenericFunctions/Parameter.h" 11 PARAMETER_OBJECT_IMP(ParameterProduct)
13 ParameterProduct::ParameterProduct(const AbsParameter *arg1, const AbsParameter *arg2):
17 if (arg1->parameter() && _arg1->parameter()) _arg1->parameter()->connectFrom(arg1->parameter());
18 if (arg2->parameter() && _arg2->parameter()) _arg2->parameter()->connectFrom(arg2->parameter());
21 ParameterProduct::ParameterProduct(
const ParameterProduct & right) :
23 _arg1(right._arg1->clone()),
24 _arg2(right._arg2->clone())
28 ParameterProduct::~ParameterProduct()
35 double ParameterProduct::getValue()
const {
36 return _arg1->getValue()*_arg2->getValue();