Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
SingleValueParameter.h File Reference
#include "MantidAPI/ImplicitFunctionParameter.h"
#include "MantidKernel/System.h"
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>

Go to the source code of this file.

Classes

class  Mantid::API::SingleValueParameter< Derived, ValType >
 SingleValueParameter is a templated base class implementing CRTP. More...
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::API
 

Macros

#define DECLARE_SINGLE_VALUE_PARAMETER(classname, type_)
 

Macro Definition Documentation

◆ DECLARE_SINGLE_VALUE_PARAMETER

#define DECLARE_SINGLE_VALUE_PARAMETER (   classname,
  type_ 
)
Value:
class classname : public Mantid::API::SingleValueParameter<classname, type_> { \
public: \
static std::string parameterName() { return #classname; } \
classname(type_ value) : SuperType(value) {} \
classname() : SuperType() {} \
std::string getName() const override { return #classname; } \
classname *clone() const override { return new classname(m_value); } \
};
const std::string & m_value
Definition: Algorithm.cpp:71
double value
The value of the point.
Definition: FitMW.cpp:51
virtual std::string getName() const =0
virtual ImplicitFunctionParameter * clone() const =0
SingleValueParameter is a templated base class implementing CRTP.

Definition at line 142 of file SingleValueParameter.h.