Flow123d
master-94c4283
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
w
Variables
Typedefs
Enumerations
Enumerator
a
b
c
d
f
g
h
i
m
n
o
p
r
s
u
w
y
Classes
Class List
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
j
k
l
m
n
o
p
r
s
t
u
v
z
Enumerations
a
b
c
d
f
h
i
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
c
d
f
i
k
l
m
n
o
p
r
s
t
v
Variables
_
a
c
d
g
m
n
p
q
s
u
v
Typedefs
_
a
d
f
g
i
j
l
m
o
p
q
r
s
t
u
v
Enumerations
Enumerator
a
b
c
d
e
f
i
m
n
o
p
r
s
u
v
w
Macros
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
w
z
src
fields
python_field_proxy.cc
Go to the documentation of this file.
1
/*!
2
*
3
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4
*
5
* This program is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License version 3 as published by the
7
* Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
*
13
*
14
* @file python_field_proxy.cc
15
* @brief
16
*/
17
18
19
#include <pybind11/pybind11.h>
20
#include <pybind11/embed.h>
// everything needed for embedding
21
#include <pybind11/stl.h>
// type conversion
22
#include "
fields/python_field_proxy.hh
"
23
24
PYBIND11_MODULE
(fieldproxypy, m) {
25
m.doc() =
"pybind11 Flow123D plugin"
;
// optional module docstring
26
27
py::class_<FieldCacheProxy>(m,
"FieldCacheProxy"
, py::buffer_protocol())
28
//.def_property("field_name", &FieldCacheProxy::get_field_name, &FieldCacheProxy::set_field_name)
29
.def(
"field_name"
, &
FieldCacheProxy::field_name
)
30
.def_buffer(&
FieldCacheProxy::field_proxy_get_buffer
);
31
}
FieldCacheProxy::field_name
const std::string & field_name() const
Getter returns field name.
Definition:
python_field_proxy.hh:80
FieldCacheProxy::field_proxy_get_buffer
static py::buffer_info field_proxy_get_buffer(FieldCacheProxy &proxy)
Definition:
python_field_proxy.hh:38
PYBIND11_MODULE
PYBIND11_MODULE(fieldproxypy, m)
Definition:
python_field_proxy.cc:24
python_field_proxy.hh
Generated by
1.8.17