Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
kernel
src
Exports
IValidator.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 "
MantidKernel/IValidator.h
"
8
#include "
MantidPythonInterface/core/GetPointer.h
"
9
#include <boost/python/class.hpp>
10
#include <boost/python/register_ptr_to_python.hpp>
11
12
using
Mantid::Kernel::IValidator
;
13
using namespace
boost::python
;
14
15
GET_POINTER_SPECIALIZATION
(
IValidator
)
16
17
void
export_IValidator
() {
18
register_ptr_to_python<std::shared_ptr<IValidator>>();
19
20
class_<IValidator, boost::noncopyable>(
"IValidator"
, no_init);
21
}
GetPointer.h
GET_POINTER_SPECIALIZATION
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition:
GetPointer.h:17
export_IValidator
void export_IValidator()
Definition:
IValidator.cpp:17
IValidator.h
Mantid::Kernel::IValidator
IValidator is the basic interface for all validators for properties.
Definition:
IValidator.h:43
boost::python
Definition:
NDArray.h:50
Generated on Tue Jan 3 2023 11:57:59 for Mantid by
1.9.5