Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs
ConstraintFactory.h File Reference
#include "MantidAPI/DllConfig.h"
#include "MantidKernel/DynamicFactory.h"
#include "MantidKernel/SingletonHolder.h"
#include <vector>

Go to the source code of this file.

Classes

class  Mantid::API::ConstraintFactoryImpl
 The ConstraintFactory class is in charge of the creation of concrete instances of Constraints. More...
 

Namespaces

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

Macros

#define DECLARE_CONSTRAINT(classname)
 Macro for declaring a new type of function to be used with the FunctionFactory. More...
 

Typedefs

using Mantid::API::ConstraintFactory = Mantid::Kernel::SingletonHolder< ConstraintFactoryImpl >
 

Macro Definition Documentation

◆ DECLARE_CONSTRAINT

#define DECLARE_CONSTRAINT (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper register_constraint_##classname( \
((Mantid::API::ConstraintFactory::Instance().subscribe<classname>(#classname)), 0)); \
}
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...

Macro for declaring a new type of function to be used with the FunctionFactory.

Definition at line 72 of file ConstraintFactory.h.