Mantid
|
#include <MockAlgorithmRunner.h>
Public Member Functions | |
Mantid::API::IAlgorithm_sptr | algorithm () const |
MOCK_CONST_METHOD0 (getAlgorithm, Mantid::API::IAlgorithm_sptr()) | |
MOCK_METHOD0 (cancelRunningAlgorithm, void()) | |
MOCK_METHOD1 (startAlgorithmImpl, void(Mantid::API::IAlgorithm_sptr)) | |
MockAlgorithmRunner ()=default | |
void | startAlgorithm (Mantid::API::IAlgorithm_sptr alg) |
Begin asynchronous execution of an algorithm and observe its execution. More... | |
Public Member Functions inherited from MantidQt::API::AlgorithmRunner | |
AlgorithmRunner (QObject *parent=nullptr) | |
Constructor. More... | |
virtual void | cancelRunningAlgorithm () |
If an algorithm is already running, cancel it. More... | |
virtual Mantid::API::IAlgorithm_sptr | getAlgorithm () const |
Get back a pointer to the running algorithm. More... | |
virtual void | startAlgorithm (Mantid::API::IAlgorithm_sptr alg) |
Begin asynchronous execution of an algorithm and observe its execution. More... | |
~AlgorithmRunner () override | |
Destructor. More... | |
Private Attributes | |
Mantid::API::IAlgorithm_sptr | m_algorithm |
Definition at line 19 of file MockAlgorithmRunner.h.
|
default |
|
inline |
Definition at line 33 of file MockAlgorithmRunner.h.
References m_algorithm.
MockAlgorithmRunner::MOCK_CONST_METHOD0 | ( | getAlgorithm | , |
Mantid::API::IAlgorithm_sptr() | |||
) |
MockAlgorithmRunner::MOCK_METHOD0 | ( | cancelRunningAlgorithm | , |
void() | |||
) |
MockAlgorithmRunner::MOCK_METHOD1 | ( | startAlgorithmImpl | , |
void(Mantid::API::IAlgorithm_sptr) | |||
) |
|
inlinevirtual |
Begin asynchronous execution of an algorithm and observe its execution.
alg | :: algorithm to execute. All properties should have been set properly. |
Reimplemented from MantidQt::API::AlgorithmRunner.
Definition at line 28 of file MockAlgorithmRunner.h.
References m_algorithm.
|
private |
Definition at line 36 of file MockAlgorithmRunner.h.
Referenced by algorithm(), and startAlgorithm().