Mantid
Loading...
Searching...
No Matches
qt
widgets
common
src
ConfiguredAlgorithm.cpp
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2021 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
#include "
MantidQtWidgets/Common/ConfiguredAlgorithm.h
"
8
#include "
MantidAPI/IAlgorithm.h
"
9
#include "
MantidQtWidgets/Common/IAlgorithmRuntimeProps.h
"
10
11
namespace
MantidQt::API
{
12
13
ConfiguredAlgorithm::ConfiguredAlgorithm
(
Mantid::API::IAlgorithm_sptr
algorithm,
14
std::unique_ptr<MantidQt::API::IAlgorithmRuntimeProps> properties)
15
: m_algorithm(
std
::move(algorithm)), m_properties(
std
::move(properties)) {}
16
17
Mantid::API::IAlgorithm_sptr
ConfiguredAlgorithm::algorithm
()
const
{
return
m_algorithm
; }
18
19
const
MantidQt::API::IAlgorithmRuntimeProps
&
ConfiguredAlgorithm::getAlgorithmRuntimeProps
() const noexcept {
20
return
*
m_properties
;
21
}
22
23
}
// namespace MantidQt::API
ConfiguredAlgorithm.h
IAlgorithmRuntimeProps.h
IAlgorithm.h
MantidQt::API::ConfiguredAlgorithm::algorithm
Mantid::API::IAlgorithm_sptr algorithm() const override
Definition:
ConfiguredAlgorithm.cpp:17
MantidQt::API::ConfiguredAlgorithm::m_algorithm
Mantid::API::IAlgorithm_sptr m_algorithm
Definition:
ConfiguredAlgorithm.h:24
MantidQt::API::ConfiguredAlgorithm::ConfiguredAlgorithm
ConfiguredAlgorithm(Mantid::API::IAlgorithm_sptr algorithm, std::unique_ptr< MantidQt::API::IAlgorithmRuntimeProps > properties)
Definition:
ConfiguredAlgorithm.cpp:13
MantidQt::API::ConfiguredAlgorithm::getAlgorithmRuntimeProps
const MantidQt::API::IAlgorithmRuntimeProps & getAlgorithmRuntimeProps() const noexcept override
Definition:
ConfiguredAlgorithm.cpp:19
MantidQt::API::ConfiguredAlgorithm::m_properties
std::unique_ptr< IAlgorithmRuntimeProps > m_properties
Definition:
ConfiguredAlgorithm.h:27
MantidQt::API::IAlgorithmRuntimeProps
Definition:
IAlgorithmRuntimeProps.h:13
MantidQt::API
Definition:
AlgorithmDialog.h:62
Mantid::API::IAlgorithm_sptr
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
Definition:
IAlgorithm_fwd.h:20
std
STL namespace.
Generated on Tue Jan 3 2023 11:58:01 for Mantid by
1.9.5