15#include "MantidMDAlgorithms/DllConfig.h"
18namespace MDAlgorithms {
29 std::string
name()
const override {
return "UserFunctionMD"; }
31 std::vector<std::string> getAttributeNames()
const override;
32 bool hasAttribute(
const std::string &attName)
const override;
33 Attribute getAttribute(
const std::string &attName)
const override;
34 void setAttribute(
const std::string &attName,
const Attribute &attr)
override;
39 void initDimensions()
override;
52 static double *AddVariable(
const char *varName,
void *pufun);
This is a specialization of IFunction for functions defined on an IMDWorkspace.
Attribute is a non-fitting parameter.
This is an interface to an iterator of an IMDWorkspace.
Implements the part of IFunction interface dealing with parameters.
std::string name() const override
Returns the function's name.
std::vector< std::string > m_varNames
mu::Parser m_parser
Expression parser.
std::vector< double > m_vars
Helper class which provides the Collimation Length for SANS instruments.