Loading [MathJax]/extensions/tex2jax.js
Mantid
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
w
x
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
a
b
e
f
i
l
m
o
s
t
u
w
Related Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
_
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
e
f
k
l
o
p
r
s
t
v
w
Macros
a
b
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
kernel
src
Exports
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 +
7
#include "
MantidPythonInterface/core/PropertyWithValueExporter.h
"
8
9
#include <boost/python/copy_const_reference.hpp>
10
11
using
Mantid::PythonInterface::PropertyWithValueExporter
;
12
13
void
export_BasicPropertyWithValueTypes
() {
14
// ints & vectors
15
PropertyWithValueExporter<int>::define
(
"IntPropertyWithValue"
);
16
PropertyWithValueExporter<std::vector<int>
>::define(
"VectorIntPropertyWithValue"
);
17
PropertyWithValueExporter<unsigned int>::define
(
"UIntPropertyWithValue"
);
18
PropertyWithValueExporter<std::vector<unsigned int>
>::define(
"VectorUIntPropertyWithValue"
);
19
20
// longs & vectors
21
PropertyWithValueExporter<long>::define
(
"LongPropertyWithValue"
);
22
PropertyWithValueExporter<std::vector<long>
>::define(
"VectorLongPropertyWithValue"
);
23
PropertyWithValueExporter<unsigned long>::define
(
"ULongPropertyWithValue"
);
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"
);
29
PropertyWithValueExporter<unsigned long long>::define
(
"ULongLongPropertyWithValue"
);
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
}
PropertyWithValueExporter.h
export_BasicPropertyWithValueTypes
void export_BasicPropertyWithValueTypes()
Definition:
PropertyWithValue.cpp:13
Mantid::PythonInterface::PropertyWithValueExporter
A helper struct to export PropertyWithValue<> types to Python.
Definition:
PropertyWithValueExporter.h:40
Mantid::PythonInterface::PropertyWithValueExporter::define
static void define(const char *pythonClassName)
Definition:
PropertyWithValueExporter.h:41
Generated on Tue Jan 3 2023 11:57:23 for Mantid by
1.9.5