9#include "MantidAPI/DllConfig.h"
33 void setDecoratedFunction(
const std::string &wrappedFunctionName);
38 void setWorkspace(std::shared_ptr<const Workspace> ws)
override;
39 void setMatrixWorkspace(std::shared_ptr<const MatrixWorkspace>
workspace,
size_t wi,
double startX,
40 double endX)
override;
43 void setParameter(
size_t i,
const double &
value,
bool explicitlySet =
true)
override;
45 void setParameterDescription(
size_t i,
const std::string &description)
override;
47 double getParameter(
size_t i)
const override;
49 void setParameter(
const std::string &name,
const double &
value,
bool explicitlySet =
true)
override;
51 void setParameterDescription(
const std::string &name,
const std::string &description)
override;
54 double activeParameter(
size_t i)
const override;
56 void setActiveParameter(
size_t i,
double value)
override;
59 double getParameter(
const std::string &name)
const override;
61 bool hasParameter(
const std::string &name)
const override;
63 size_t nParams()
const override;
65 size_t parameterIndex(
const std::string &name)
const override;
67 std::string parameterName(
size_t i)
const override;
69 std::string parameterDescription(
size_t i)
const override;
71 bool isExplicitlySet(
size_t i)
const override;
73 double getError(
size_t i)
const override;
75 double getError(
const std::string &name)
const override;
77 void setError(
size_t i,
double err)
override;
79 void setError(
const std::string &name,
double err)
override;
86 size_t nAttributes()
const override;
88 std::vector<std::string> getAttributeNames()
const override;
94 bool hasAttribute(
const std::string &attName)
const override;
97 void tie(
const std::string &parName,
const std::string &expr,
bool isDefault =
false)
override;
99 void applyTies()
override;
101 void clearTies()
override;
102 void removeTie(
const std::string &parName)
override;
104 bool removeTie(
size_t i)
override;
109 void addConstraint(std::unique_ptr<IConstraint> ic)
override;
111 IConstraint *getConstraint(
size_t i)
const override;
113 void removeConstraint(
const std::string &parName)
override;
115 void setUpForFit()
override;
121 void throwIfNoFunctionSet()
const;
123 void declareParameter(
const std::string &name,
double initValue,
const std::string &description)
override;
125 void addTie(std::unique_ptr<ParameterTie>)
override;
126 void setParameterStatus(
size_t i, ParameterStatus status)
override;
127 ParameterStatus getParameterStatus(
size_t i)
const override;
129 virtual void beforeDecoratedFunctionSet(
const IFunction_sptr &fn);
double value
The value of the point.
IPeaksWorkspace_sptr workspace
FunctionParameterDecorator.
IFunction_sptr m_wrappedFunction
FunctionParameterDecorator()
void init() override
Does nothing.
An interface to a constraint.
Attribute is a non-fitting parameter.
This is an interface to a fitting function - a semi-abstarct class.
A reference to a parameter in a function.
std::shared_ptr< FunctionParameterDecorator > FunctionParameterDecorator_sptr
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Helper class which provides the Collimation Length for SANS instruments.