Mantid
|
Factory methods for creating MatrixWorkspaces. More...
Classes | |
struct | IsIndexInfo |
struct | IsIndexInfo< Indexing::IndexInfo > |
Functions | |
template<class T > | |
std::unique_ptr< T > | createConcreteHelper () |
template<> | |
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::MatrixWorkspace > | createConcreteHelper () |
template<> | |
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::HistoWorkspace > | createConcreteHelper () |
template<> | |
std::unique_ptr< API::MatrixWorkspace > | createConcreteHelper () |
template<> | |
std::unique_ptr< API::HistoWorkspace > | createConcreteHelper () |
template<class T > | |
std::unique_ptr< T > | createHelper () |
template<> | |
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::HistoWorkspace > | createHelper () |
template<> | |
MANTID_DATAOBJECTS_DLL std::unique_ptr< EventWorkspace > | createHelper () |
template<> | |
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::MatrixWorkspace > | createHelper () |
template<> | |
std::unique_ptr< EventWorkspace > | createHelper () |
template<> | |
std::unique_ptr< API::HistoWorkspace > | createHelper () |
template<> | |
std::unique_ptr< API::MatrixWorkspace > | createHelper () |
template<class UseIndexInfo > | |
void | doInitializeFromParent (const API::MatrixWorkspace &parent, API::MatrixWorkspace &workspace, const bool differentSize) |
template<> | |
void | doInitializeFromParent< std::true_type > (const API::MatrixWorkspace &parent, API::MatrixWorkspace &child, const bool differentSize) |
Same as WorkspaceFactory::initializeFromParent, with modifications for changed IndexInfo. More... | |
template<class HistArg > | |
void | fixDistributionFlag (API::MatrixWorkspace &, const HistArg &) |
template<> | |
MANTID_DATAOBJECTS_DLL void | fixDistributionFlag (API::MatrixWorkspace &workspace, const HistogramData::Histogram &histArg) |
template<> | |
void | fixDistributionFlag (API::MatrixWorkspace &workspace, const HistogramData::Histogram &histArg) |
template<class UseIndexInfo > | |
void | initializeFromParent (const API::MatrixWorkspace &parent, API::MatrixWorkspace &ws) |
Initialize a MatrixWorkspace from its parent including instrument, unit, number of spectra and Run. More... | |
template void MANTID_DATAOBJECTS_DLL | initializeFromParent< std::false_type > (const API::MatrixWorkspace &, API::MatrixWorkspace &) |
template void MANTID_DATAOBJECTS_DLL | initializeFromParent< std::true_type > (const API::MatrixWorkspace &, API::MatrixWorkspace &) |
MANTID_DATAOBJECTS_DLL HistogramData::Histogram | stripData (HistogramData::Histogram histogram) |
Factory methods for creating MatrixWorkspaces.
A template parameter T specifies the type of (or a base type of) the created workspace:
Other arguments can include:
Available variants are:
In all cases a (smart) pointer to T is returned.
std::unique_ptr< T > Mantid::DataObjects::detail::createConcreteHelper | ( | ) |
Definition at line 97 of file WorkspaceCreation.h.
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::MatrixWorkspace > Mantid::DataObjects::detail::createConcreteHelper | ( | ) |
Definition at line 26 of file WorkspaceCreation.cpp.
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::HistoWorkspace > Mantid::DataObjects::detail::createConcreteHelper | ( | ) |
Definition at line 26 of file WorkspaceCreation.cpp.
std::unique_ptr< API::MatrixWorkspace > Mantid::DataObjects::detail::createConcreteHelper | ( | ) |
Definition at line 26 of file WorkspaceCreation.cpp.
std::unique_ptr< API::HistoWorkspace > Mantid::DataObjects::detail::createConcreteHelper | ( | ) |
Definition at line 29 of file WorkspaceCreation.cpp.
std::unique_ptr< T > Mantid::DataObjects::detail::createHelper | ( | ) |
Definition at line 95 of file WorkspaceCreation.h.
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::HistoWorkspace > Mantid::DataObjects::detail::createHelper | ( | ) |
Definition at line 20 of file WorkspaceCreation.cpp.
MANTID_DATAOBJECTS_DLL std::unique_ptr< EventWorkspace > Mantid::DataObjects::detail::createHelper | ( | ) |
Definition at line 20 of file WorkspaceCreation.cpp.
MANTID_DATAOBJECTS_DLL std::unique_ptr< API::MatrixWorkspace > Mantid::DataObjects::detail::createHelper | ( | ) |
Definition at line 20 of file WorkspaceCreation.cpp.
std::unique_ptr< EventWorkspace > Mantid::DataObjects::detail::createHelper | ( | ) |
Definition at line 20 of file WorkspaceCreation.cpp.
std::unique_ptr< API::HistoWorkspace > Mantid::DataObjects::detail::createHelper | ( | ) |
Definition at line 22 of file WorkspaceCreation.cpp.
std::unique_ptr< API::MatrixWorkspace > Mantid::DataObjects::detail::createHelper | ( | ) |
Definition at line 24 of file WorkspaceCreation.cpp.
void Mantid::DataObjects::detail::doInitializeFromParent | ( | const API::MatrixWorkspace & | parent, |
API::MatrixWorkspace & | workspace, | ||
const bool | differentSize | ||
) |
Definition at line 34 of file WorkspaceCreation.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), and workspace.
void Mantid::DataObjects::detail::doInitializeFromParent< std::true_type > | ( | const API::MatrixWorkspace & | parent, |
API::MatrixWorkspace & | child, | ||
const bool | differentSize | ||
) |
Same as WorkspaceFactory::initializeFromParent, with modifications for changed IndexInfo.
IndexInfo used for initialization this implies that the following data from the parent is not applicable (since no automatic mapping possible):
Definition at line 49 of file WorkspaceCreation.cpp.
References Mantid::API::MatrixWorkspace::indexInfo(), Mantid::Kernel::SingletonHolder< T >::Instance(), and Mantid::API::MatrixWorkspace::setIndexInfo().
void Mantid::DataObjects::detail::fixDistributionFlag | ( | API::MatrixWorkspace & | , |
const HistArg & | |||
) |
Definition at line 111 of file WorkspaceCreation.h.
Referenced by Mantid::DataObjects::create().
MANTID_DATAOBJECTS_DLL void Mantid::DataObjects::detail::fixDistributionFlag | ( | API::MatrixWorkspace & | workspace, |
const HistogramData::Histogram & | histArg | ||
) |
Definition at line 80 of file WorkspaceCreation.cpp.
References workspace.
void Mantid::DataObjects::detail::fixDistributionFlag | ( | API::MatrixWorkspace & | workspace, |
const HistogramData::Histogram & | histArg | ||
) |
Definition at line 80 of file WorkspaceCreation.cpp.
References workspace.
void Mantid::DataObjects::detail::initializeFromParent | ( | const API::MatrixWorkspace & | parent, |
API::MatrixWorkspace & | ws | ||
) |
Initialize a MatrixWorkspace from its parent including instrument, unit, number of spectra and Run.
initializeFromParent
parent | |
ws |
Definition at line 71 of file WorkspaceCreation.cpp.
References Mantid::API::MatrixWorkspace::mutableX(), Mantid::API::MatrixWorkspace::x(), and Mantid::API::MatrixWorkspace::y().
template void MANTID_DATAOBJECTS_DLL Mantid::DataObjects::detail::initializeFromParent< std::false_type > | ( | const API::MatrixWorkspace & | , |
API::MatrixWorkspace & | |||
) |
template void MANTID_DATAOBJECTS_DLL Mantid::DataObjects::detail::initializeFromParent< std::true_type > | ( | const API::MatrixWorkspace & | , |
API::MatrixWorkspace & | |||
) |
HistogramData::Histogram Mantid::DataObjects::detail::stripData | ( | HistogramData::Histogram | histogram | ) |
Definition at line 14 of file WorkspaceCreation.cpp.
Referenced by Mantid::DataObjects::create().