Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
api
src
Exports
ISplittersWorkspace.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
#include "
MantidAPI/ISplittersWorkspace.h
"
8
#include "
MantidPythonInterface/api/RegisterWorkspacePtrToPython.h
"
9
#include "
MantidPythonInterface/core/GetPointer.h
"
10
#include <boost/python/class.hpp>
11
#include <boost/python/return_internal_reference.hpp>
12
13
using
Mantid::API::ISplittersWorkspace
;
14
using namespace
Mantid::PythonInterface::Registry
;
15
using namespace
boost::python
;
16
17
GET_POINTER_SPECIALIZATION
(
ISplittersWorkspace
)
18
19
void
export_ISplittersWorkspace
() {
20
class_<ISplittersWorkspace, boost::noncopyable>(
"ISplittersWorkspace"
, no_init)
21
.def(
"getNumberSplitters"
, &
ISplittersWorkspace::getNumberSplitters
, arg(
"self"
),
22
"Returns the number of splitters within the workspace"
);
23
24
// register pointers
25
RegisterWorkspacePtrToPython<ISplittersWorkspace>
();
26
}
GetPointer.h
GET_POINTER_SPECIALIZATION
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition:
GetPointer.h:17
export_ISplittersWorkspace
void export_ISplittersWorkspace()
Definition:
ISplittersWorkspace.cpp:19
ISplittersWorkspace.h
RegisterWorkspacePtrToPython.h
Mantid::API::ISplittersWorkspace
ISplittersWorkspace : Workspace to contain splitters for event filtering.
Definition:
ISplittersWorkspace.h:20
Mantid::API::ISplittersWorkspace::getNumberSplitters
virtual size_t getNumberSplitters() const =0
Mantid::PythonInterface::Registry
Definition:
MappingTypeHandler.h:13
boost::python
Definition:
NDArray.h:50
Mantid::PythonInterface::Registry::RegisterWorkspacePtrToPython
Encapsulates the registration required for an interface type T that sits on top of a Kernel::DataItem...
Definition:
RegisterWorkspacePtrToPython.h:83
Generated on Tue Jan 3 2023 11:57:58 for Mantid by
1.9.5