Mantid
Loading...
Searching...
No Matches
AlgorithmFactoryObserverAdapter.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 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#pragma once
8
10#include "MantidPythonInterface/api/DllConfig.h"
11#include <boost/python/wrapper.hpp>
12
13namespace Mantid {
14namespace PythonInterface {
15
24public:
25 explicit AlgorithmFactoryObserverAdapter(PyObject *self);
28
29 void updateHandle() override;
30
31private:
33 inline PyObject *getSelf() const { return m_self; }
35 PyObject *m_self;
36};
37
38} // namespace PythonInterface
39} // namespace Mantid
std::unique_ptr< ConceptT > m_self
A wrapper class helping to export AnalysisDataServiceObserver to python.
PyObject * m_self
Value of "self" used by python to refer to an instance of this class.
PyObject * getSelf() const
Return the PyObject that owns this wrapper, i.e. self.
AlgorithmFactoryObserverAdapter & operator=(const AlgorithmFactoryObserverAdapter &)=delete
AlgorithmFactoryObserverAdapter(const AlgorithmFactoryObserverAdapter &)=delete
Helper class which provides the Collimation Length for SANS instruments.