Mantid
Loading...
Searching...
No Matches
IFunctionMW.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7//----------------------------------------------------------------------
8// Includes
9//----------------------------------------------------------------------
12
13namespace Mantid::API {
14using namespace Geometry;
15
22void IFunctionMW::setMatrixWorkspace(std::shared_ptr<const API::MatrixWorkspace> workspace, size_t wi, double startX,
23 double endX) {
26
28}
29
33std::shared_ptr<const API::MatrixWorkspace> IFunctionMW::getMatrixWorkspace() const { return m_workspace.lock(); }
34
35} // namespace Mantid::API
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
size_t m_workspaceIndex
An index to a spectrum.
Definition: IFunctionMW.h:44
std::weak_ptr< const API::MatrixWorkspace > m_workspace
Keep a weak pointer to the workspace.
Definition: IFunctionMW.h:42
void setMatrixWorkspace(std::shared_ptr< const API::MatrixWorkspace > workspace, size_t wi, double startX, double endX) override
Set MatrixWorkspace.
Definition: IFunctionMW.cpp:22
std::shared_ptr< const API::MatrixWorkspace > getMatrixWorkspace() const
Get shared pointer to the workspace.
Definition: IFunctionMW.cpp:33
virtual void setMatrixWorkspace(std::shared_ptr< const API::MatrixWorkspace > workspace, size_t wi, double startX, double endX)
Set matrix workspace.
Definition: IFunction.cpp:1100