Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
WorkspaceFactory.h File Reference
#include "MantidAPI/DllConfig.h"
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidAPI/Workspace_fwd.h"
#include "MantidKernel/DynamicFactory.h"
#include "MantidKernel/SingletonHolder.h"
#include <memory>

Go to the source code of this file.

Classes

class  Mantid::API::WorkspaceFactoryImpl
 The WorkspaceFactory class is in charge of the creation of all types of workspaces. More...
 

Namespaces

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

Macros

#define DECLARE_WORKSPACE(classname)
 

Typedefs

using Mantid::API::WorkspaceFactory = Mantid::Kernel::SingletonHolder< WorkspaceFactoryImpl >
 

Functions

template<class T , class... InitArgs>
std::shared_ptr< T > Mantid::API::createWorkspace (InitArgs... args)
 

Macro Definition Documentation

◆ DECLARE_WORKSPACE

#define DECLARE_WORKSPACE (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper \
register_ws_##classname(((Mantid::API::WorkspaceFactory::Instance().subscribe<classname>(#classname)), 0)); \
}
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...

Definition at line 14 of file WorkspaceFactory.h.