Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all of the Python downcasting framework
This should now happen behind the scenes in Boost Python. Refs #9807
- Loading branch information
1 parent
fe90068
commit 12df5ed
Showing
27 changed files
with
412 additions
and
789 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
Code/Mantid/Framework/PythonInterface/inc/MantidPythonInterface/api/ExtractWorkspace.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#ifndef MANTID_PYTHONINTERFACE_EXTRACTWORKSPACE_H_ | ||
#define MANTID_PYTHONINTERFACE_EXTRACTWORKSPACE_H_ | ||
/** | ||
Copyright © 2015 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge | ||
National Laboratory & European Spallation Source | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://github.com/mantidproject/mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
#include <MantidAPI/Workspace.h> | ||
|
||
#include <boost/python/object_fwd.hpp> | ||
|
||
namespace Mantid { | ||
namespace PythonInterface { | ||
|
||
struct ExtractWorkspace { | ||
ExtractWorkspace(const boost::python::object &pyvalue); | ||
bool check() const; | ||
const API::Workspace_sptr operator()() const; | ||
|
||
private: | ||
API::Workspace_sptr m_value; | ||
}; | ||
} | ||
} | ||
|
||
#endif // MANTID_PYTHONINTERFACE_EXTRACTWORKSPACE_H_ |
130 changes: 0 additions & 130 deletions
130
...Framework/PythonInterface/inc/MantidPythonInterface/kernel/Policies/DowncastingPolicies.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 0 additions & 119 deletions
119
...id/Framework/PythonInterface/inc/MantidPythonInterface/kernel/Registry/DowncastDataItem.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.