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

Go to the source code of this file.

Classes

class  Mantid::MDAlgorithms::Vector3DParameter< Derived, ElemType >
 Vector3DParameter is abstract type implementing curiously recurring template pattern to implement common code associated with vector storage. More...
 

Namespaces

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

Macros

#define DECLARE_3D_VECTOR_PARAMETER(classname, type_)
 

Macro Definition Documentation

◆ DECLARE_3D_VECTOR_PARAMETER

#define DECLARE_3D_VECTOR_PARAMETER (   classname,
  type_ 
)
Value:
class classname : public Mantid::MDAlgorithms::Vector3DParameter<classname, double> { \
public: \
using SuperType = Vector3DParameter<classname, type_> SuperType; \
static std::string parameterName() { return #classname; } \
classname(type_ a, type_ b, type_ c) : SuperType(a, b, c) {} \
classname() : SuperType() {} \
std::string getName() const { return #classname; } \
classname *clone() const { return new classname(m_vector[0], m_vector[1], m_vector[2]); } \
};
virtual std::string getName() const =0
virtual ImplicitFunctionParameter * clone() const =0
Vector3DParameter is abstract type implementing curiously recurring template pattern to implement com...

Definition at line 118 of file Vector3DParameter.h.