Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
v
w
x
y
+
Functions
_
a
c
d
e
f
g
i
m
n
p
r
s
t
u
+
Variables
_
a
b
c
d
e
i
l
m
n
p
q
r
s
t
v
w
x
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
v
w
x
y
~
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
~
+
Variables
b
c
d
e
f
i
j
l
m
n
o
p
s
t
v
w
x
y
+
Typedefs
_
a
b
c
d
e
f
i
k
l
m
n
p
q
r
s
t
v
Enumerator
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
e
f
g
i
l
m
n
p
r
s
t
v
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
+
Macros
_
b
e
n
p
include
eigenpy
copyable.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2016-2021 CNRS INRIA
3
//
4
5
#ifndef __eigenpy_utils_copyable_hpp__
6
#define __eigenpy_utils_copyable_hpp__
7
8
#include <boost/python.hpp>
9
10
namespace
eigenpy
{
11
16
template
<
class
C>
17
struct
CopyableVisitor
:
public
bp::def_visitor<CopyableVisitor<C> > {
18
template
<
class
PyClass>
19
void
visit
(PyClass& cl)
const
{
20
cl.def(
"copy"
, &
copy
, bp::arg(
"self"
),
"Returns a copy of *this."
);
21
}
22
23
private
:
24
static
C
copy
(
const
C&
self
) {
return
C(
self
); }
25
};
26
}
// namespace eigenpy
27
28
#endif // ifndef __eigenpy_utils_copyable_hpp__
eigenpy::CopyableVisitor::copy
static C copy(const C &self)
Definition:
copyable.hpp:24
eigenpy
Definition:
alignment.hpp:14
eigenpy::CopyableVisitor::visit
void visit(PyClass &cl) const
Definition:
copyable.hpp:19
eigenpy::CopyableVisitor
Add the Python method copy to allow a copy of this by calling the copy constructor.
Definition:
copyable.hpp:17
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:26