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()
22 void PlaneGCSSolver_ParameterWrapper::setValue(double theValue)
24 *(myValue) = theValue;
27 double PlaneGCSSolver_ParameterWrapper::value() const
32 bool PlaneGCSSolver_ParameterWrapper::isEqual(const ParameterWrapperPtr& theOther)
34 return fabs(value() - theOther->value()) < tolerance;
37 bool PlaneGCSSolver_ParameterWrapper::update(const ParameterWrapperPtr& theOther)
39 if (fabs(value() - theOther->value()) < tolerance)
41 setValue(theOther->value());
42 myIsParametric = theOther->isParametric();