12#include "MantidAPI/DllConfig.h"
57 throw std::runtime_error(
"Generic centre fixing isn't implemented for this function.");
61 virtual void unfixCentre() {
throw std::runtime_error(
"Generic centre fixing isn't implemented for this function."); }
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
This is a specialization of IFunction for functions of one real argument.
An interface to a function with location, which here means a function for which the user may ask what...
~IFunctionWithLocation() override=default
Virtual destructor (avoids warnings about non-trivial move assignment in virtually inheriting classes...
virtual void setHeight(const double h)=0
Sets the parameters such that height == h.
virtual void unfixCentre()
Free the centre parameter.
virtual double height() const =0
Returns the height of the function.
virtual void setCentre(const double c)=0
Sets the parameters such that centre == c.
virtual void fixCentre(bool isDefault=false)
Fix a parameter or set up a tie such that value returned by centre() is constant during fitting.
virtual double centre() const =0
Returns the centre of the function, which may be something as simple as the centre of the fitting ran...
Implements the part of IFunction interface dealing with parameters.
Helper class which provides the Collimation Length for SANS instruments.