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