Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
VectorParameter.h File Reference
#include "MantidAPI/ImplicitFunctionParameter.h"
#include "MantidKernel/System.h"

Go to the source code of this file.

Classes

class  Mantid::API::VectorParameter< Derived, ElemType >
 VectorParameter 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::API
 

Macros

#define DECLARE_VECTOR_PARAMETER(classname, type_)
 

Macro Definition Documentation

◆ DECLARE_VECTOR_PARAMETER

#define DECLARE_VECTOR_PARAMETER (   classname,
  type_ 
)
Value:
class classname : public Mantid::API::VectorParameter<classname, type_> { \
public: \
static std::string parameterName() { return #classname; } \
classname() : SuperType() {} \
classname(size_t index) : SuperType(index) {} \
std::string getName() const override { return #classname; } \
classname *clone() const override { return new classname(*this); } \
};
std::map< DeltaEMode::Type, std::string > index
Definition: DeltaEMode.cpp:19
virtual std::string getName() const =0
virtual ImplicitFunctionParameter * clone() const =0
VectorParameter is abstract type implementing curiously recurring template pattern to implement commo...

Definition at line 221 of file VectorParameter.h.