Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
kernel
inc
MantidPythonInterface
kernel
Registry
SequenceTypeHandler.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2011 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
9
#include "MantidPythonInterface/kernel/DllConfig.h"
10
#include "
MantidPythonInterface/kernel/Registry/TypedPropertyValueHandler.h
"
11
12
namespace
Mantid
{
13
namespace
PythonInterface {
14
namespace
Registry
{
20
template
<
typename
ContainerType>
21
struct
PYTHON_KERNEL_DLL
SequenceTypeHandler
:
TypedPropertyValueHandler
<ContainerType> {
22
24
void
set(
Kernel::IPropertyManager
*alg,
const
std::string &
name
,
const
boost::python::object &
value
)
const override
;
25
27
std::unique_ptr<Kernel::Property>
create
(
const
std::string &
name
,
const
boost::python::object &defaultValue,
28
const
boost::python::object &validator,
29
const
unsigned
int
direction)
const override
;
30
};
31
}
// namespace Registry
32
}
// namespace PythonInterface
33
}
// namespace Mantid
name
std::string name
Definition
Run.cpp:60
value
double value
The value of the point.
Definition
FitMW.cpp:51
TypedPropertyValueHandler.h
Mantid::Kernel::IPropertyManager
Interface to PropertyManager.
Definition
IPropertyManager.h:58
Mantid::DataObjects::create
std::unique_ptr< T > create(const P &parent, const IndexArg &indexArg, const HistArg &histArg)
This is the create() method that all the other create() methods call.
Definition
WorkspaceCreation.h:132
Mantid::PythonInterface::Registry
Definition
MappingTypeHandler.h:13
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Mantid::PythonInterface::Registry::SequenceTypeHandler
A specialisation of PropertyValueHander to handle coercing a Python value into a C++ sequence/array p...
Definition
SequenceTypeHandler.h:21
Mantid::PythonInterface::Registry::TypedPropertyValueHandler
This class provides a templated class object that is able to take a python object and perform operati...
Definition
TypedPropertyValueHandler.h:32
Generated by
1.9.8