Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs
ScriptRepositoryFactory.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::ScriptRepositoryFactoryImpl
 The ScriptRepositoryFactoryImpl class is in charge of the creation of concrete instance of ScriptRepository interface. More...
 

Namespaces

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

Macros

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

Typedefs

using Mantid::API::ScriptRepositoryFactory = Mantid::Kernel::SingletonHolder< ScriptRepositoryFactoryImpl >
 

Macro Definition Documentation

◆ DECLARE_SCRIPTREPOSITORY

#define DECLARE_SCRIPTREPOSITORY (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper register_function_##classname( \
((Mantid::API::ScriptRepositoryFactory::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 69 of file ScriptRepositoryFactory.h.