Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs
MDTransfFactory.h File Reference
#include "MantidMDAlgorithms/DllConfig.h"
#include "MantidKernel/DynamicFactory.h"
#include "MantidKernel/SingletonHolder.h"
#include "MantidMDAlgorithms/MDTransfInterface.h"

Go to the source code of this file.

Classes

class  Mantid::MDAlgorithms::MDTransfFactoryImpl
 Creates instances of concrete transformations into multidimensional (MD) coordinates. More...
 

Namespaces

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

Macros

#define DECLARE_MD_TRANSF(classname)
 
#define DECLARE_MD_TRANSFID(classname, regID)
 

Typedefs

using Mantid::MDAlgorithms::MDTransfFactory = Kernel::SingletonHolder< MDTransfFactoryImpl >
 The specialization of the SingletonHolder class that holds the MDTransformations Factory. More...
 

Macro Definition Documentation

◆ DECLARE_MD_TRANSF

#define DECLARE_MD_TRANSF (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper register_alg_##classname( \
((Mantid::MDAlgorithms::MDTransfFactory::Instance().subscribe<classname>(#classname)), 0)); \
} \
const std::string Mantid::MDAlgorithms::classname::transfID() const { return #classname; }
This class is simply used in the subscription of classes into the various factories in Mantid.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...

Definition at line 23 of file MDTransfFactory.h.

◆ DECLARE_MD_TRANSFID

#define DECLARE_MD_TRANSFID (   classname,
  regID 
)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper \
register_alg_##classname(((Mantid::MDAlgorithms::MDTransfFactory::Instance().subscribe<classname>(#regID)), 0)); \
} \
const std::string Mantid::MDAlgorithms::classname::transfID() const { return #regID; }

Definition at line 30 of file MDTransfFactory.h.