1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PlaneGCSSolver_ParameterWrapper.cpp
4 // Created: 14 Dec 2015
5 // Author: Artem ZHIDKOV
7 #include <PlaneGCSSolver_ParameterWrapper.h>
11 PlaneGCSSolver_ParameterWrapper::PlaneGCSSolver_ParameterWrapper(double *const theParam)
17 PlaneGCSSolver_ParameterWrapper::~PlaneGCSSolver_ParameterWrapper()
23 void PlaneGCSSolver_ParameterWrapper::setValue(double theValue)
25 *(myValue) = theValue;
28 double PlaneGCSSolver_ParameterWrapper::value() const
33 bool PlaneGCSSolver_ParameterWrapper::isEqual(const ParameterWrapperPtr& theOther)
35 return fabs(value() - theOther->value()) < tolerance;
38 bool PlaneGCSSolver_ParameterWrapper::update(const ParameterWrapperPtr& theOther)
40 if (fabs(value() - theOther->value()) < tolerance)
42 setValue(theOther->value());
43 myIsParametric = theOther->isParametric();