11#include <boost/algorithm/string.hpp>
12#include <boost/format.hpp>
69template <
typename Derived,
typename ValType>
72 this->m_isValid = other.m_isValid;
75 return *(
dynamic_cast<Derived *
>(
this));
83template <
typename Derived,
typename ValType>
85 return other.m_value == this->
m_value;
93template <
typename Derived,
typename ValType>
95 return !(*
this == other);
102template <
typename Derived,
typename ValType>
107template <
typename Derived,
typename ValType>
111 m_isValid = other.m_isValid;
116template <
typename Derived,
typename ValType>
123template <
typename Derived,
typename ValType>
132 return this->parameterXMLTemplate(valueXMLtext);
143#define DECLARE_SINGLE_VALUE_PARAMETER(classname, type_) \
144 class classname : public Mantid::API::SingleValueParameter<classname, type_> { \
146 using SuperType = Mantid::API::SingleValueParameter<classname, type_>; \
147 static std::string parameterName() { return #classname; } \
148 classname(type_ value) : SuperType(value) {} \
149 classname() : SuperType() {} \
150 std::string getName() const override { return #classname; } \
151 classname *clone() const override { return new classname(m_value); } \
const std::string & m_value
double value
The value of the point.
Abstract parameter type for use with IImplicitFunctions.
SingleValueParameter is a templated base class implementing CRTP.
SingleValueParameter()
Default constructor. Object is created in invalid state.
bool operator!=(const Derived &other) const
bool isValid() const override
bool operator==(const Derived &other) const
SingleValueParameter< Derived, ValType > & operator=(const SingleValueParameter< Derived, ValType > &other)
std::string toXMLString() const override
Helper class which provides the Collimation Length for SANS instruments.
Default ElementTraits SFINAE Typetraits are used to provide the correct formatting based on the eleme...