Mantid
Loading...
Searching...
No Matches
PropertyWithValue.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 +
8
9#include <boost/python/copy_const_reference.hpp>
10
12
14 // ints & vectors
15 PropertyWithValueExporter<int>::define("IntPropertyWithValue");
16 PropertyWithValueExporter<std::vector<int>>::define("VectorIntPropertyWithValue");
18 PropertyWithValueExporter<std::vector<unsigned int>>::define("VectorUIntPropertyWithValue");
19
20 // longs & vectors
21 PropertyWithValueExporter<long>::define("LongPropertyWithValue");
22 PropertyWithValueExporter<std::vector<long>>::define("VectorLongPropertyWithValue");
24 PropertyWithValueExporter<std::vector<unsigned long>>::define("VectorULongPropertyWithValue");
25
26 // long long long longs & vectors
27 PropertyWithValueExporter<long long>::define("LongLongPropertyWithValue");
28 PropertyWithValueExporter<std::vector<long long>>::define("VectorLongLongPropertyWithValue");
30 PropertyWithValueExporter<std::vector<unsigned long long>>::define("VectorULongLongPropertyWithValue");
31
32 // double
33 PropertyWithValueExporter<double>::define("FloatPropertyWithValue");
34 PropertyWithValueExporter<std::vector<double>>::define("VectorFloatPropertyWithValue");
35
36 // boolean
37 PropertyWithValueExporter<bool>::define("BoolPropertyWithValue");
38 PropertyWithValueExporter<std::vector<bool>>::define("VectorBoolPropertyWithValue");
39
40 // std::string
41 PropertyWithValueExporter<std::string>::define("StringPropertyWithValue");
42 PropertyWithValueExporter<std::vector<std::string>>::define("VectorStringPropertyWithValue");
43}
void export_BasicPropertyWithValueTypes()
A helper struct to export PropertyWithValue<> types to Python.
static void define(const char *pythonClassName)